mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2025-09-06 17:06:58 +00:00
put abort functionality into get_config_path to further reduce code duplication
This commit is contained in:
@ -95,11 +95,7 @@ int main(int argc, char *argv[]) {
|
||||
return usage(argv);
|
||||
|
||||
/* check if path of config file has not been passed via command line */
|
||||
if(!path) path = get_config_path(pbuf, sizeof(pbuf));
|
||||
if(!path) {
|
||||
perror("couldnt find configuration file");
|
||||
return 1;
|
||||
}
|
||||
path = get_config_path(path, pbuf, sizeof(pbuf));
|
||||
|
||||
if(!quiet)
|
||||
fprintf(stderr, LOG_PREFIX "config file found: %s\n", path);
|
||||
|
Reference in New Issue
Block a user