Improve mkdir error message.
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ int main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
if (mkdir(argv[1], S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) {
|
||||
printf("%s: cannot create directory '%s': %s\n", argv[0], argv[1], strerror(errno));
|
||||
printf("mkdir: cannot create directory '%s': %s\n\n", argv[1], strerror(errno));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user