diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-08-03 21:35:35 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-08-03 21:35:35 -0400 |
| commit | 2a68306dbbf894cfdb94773686005cd6228afd27 (patch) | |
| tree | 006d9f487463f1fea19aee2ecff68b3c5cb7021f | |
| parent | 0d18b3fa7174987698596d718adb9f4c6b47ad70 (diff) | |
fix error output on parent existing as non-directory
| -rw-r--r-- | mkdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ static int mk_dir(char *path, int mode, int flags) return 1; } } else if (!S_ISDIR(st.st_mode)) { - fprintf(stderr, "mkdir: %s: %s\n", path, strerror(EEXIST)); + fprintf(stderr, "mkdir: %s: %s\n", p, strerror(EEXIST)); return 1; } } |
