Lines 458-467
Link Here
|
458 |
if (argv[optind][0] != '/') |
458 |
if (argv[optind][0] != '/') |
459 |
eerrorx("%s: `%s' is not a mount point", |
459 |
eerrorx("%s: `%s' is not a mount point", |
460 |
argv[0], argv[optind]); |
460 |
argv[0], argv[optind]); |
461 |
if (realpath(argv[optind++], real_path) == NULL) { |
461 |
char *this_path = argv[optind++]; |
462 |
eerrorx("%s: realpath() failed: %s", argv[0], strerror(errno)); |
462 |
if (realpath(this_path, real_path)) |
463 |
} |
463 |
this_path = real_path; |
464 |
rc_stringlist_add(args.mounts, real_path); |
464 |
else |
|
|
465 |
eerrorx("%s: realpath() failed: %s", this_path, strerror(errno)); |
466 |
rc_stringlist_add(args.mounts, this_path); |
465 |
} |
467 |
} |
466 |
nodes = find_mounts(&args); |
468 |
nodes = find_mounts(&args); |
467 |
rc_stringlist_free(args.mounts); |
469 |
rc_stringlist_free(args.mounts); |