woops, i shouldnt be so presumtuous? about what the error will be
This commit is contained in:
2
mount.c
2
mount.c
@@ -395,7 +395,7 @@ extern int mount_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (optind + 1 < argc) {
|
if (optind + 1 < argc) {
|
||||||
if (realpath(argv[optind + 1], directory) == NULL) {
|
if (realpath(argv[optind + 1], directory) == NULL) {
|
||||||
perror_msg_and_die("Invalid directory %s", directory);
|
perror_msg_and_die("%s", directory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -395,7 +395,7 @@ extern int mount_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (optind + 1 < argc) {
|
if (optind + 1 < argc) {
|
||||||
if (realpath(argv[optind + 1], directory) == NULL) {
|
if (realpath(argv[optind + 1], directory) == NULL) {
|
||||||
perror_msg_and_die("Invalid directory %s", directory);
|
perror_msg_and_die("%s", directory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user