summaryrefslogtreecommitdiff
path: root/command/mkdir.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-14 21:43:02 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-14 21:43:02 -0400
commite735ad6710a82604a206ad29f6cbcdd7dc4b024c (patch)
tree5fe8eebbb7a2bff20bb71bd2368955356979e0a2 /command/mkdir.c
parentsync (diff)
downloadlazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.tar.gz
lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.tar.bz2
lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.zip
refactor and add su
Diffstat (limited to '')
-rw-r--r--command/mkdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command/mkdir.c b/command/mkdir.c
index 0d3950d..e6d6268 100644
--- a/command/mkdir.c
+++ b/command/mkdir.c
@@ -38,7 +38,7 @@ static bool mkdir_parents(char* path) {
if (path[i] != '/') continue;
path[i] = '\0';
if (mkdir(path, flags.mode) < 0 && errno != EEXIST) {
- error_s("failed to create directory '%s': %s", path, strerror(errno));
+ error_s("failed to create directory '%s'", path);
return false;
};
path[i] = '/';
@@ -62,7 +62,7 @@ COMMAND(makedir) {
continue;
}
if (mkdir(argv[i], flags.mode) < 0) {
- error_s("failed to create directory '%s': %s", argv[i], strerror(errno));
+ error_s("failed to create directory '%s'", argv[i]);
}
}