commit a4eb639ba7b71c461cecb0cfe445ac065e582b49 parent 0690c1a0038c5e89780643c42c28e708a65f3764 Author: Markus Wichmann <nullplan@gmx.net> Date: Sun, 20 Oct 2013 10:49:59 +0200 Make mkdir read mode argument as octal. Diffstat:
M | mkdir.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkdir.c b/mkdir.c @@ -30,7 +30,7 @@ main(int argc, char *argv[]) break; case 'm': mflag = true; - mode = estrtol(EARGF(usage()), 10); + mode = estrtol(EARGF(usage()), 8); break; default: usage();