[PATCH 1/4] Make mkdir read mode argument as octal.

From: Markus Wichmann <nullplan_AT_gmx.net>
Date: Sun, 20 Oct 2013 10:49:59 +0200

---
 mkdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkdir.c b/mkdir.c
index 8080797..781654a 100644
--- a/mkdir.c
+++ b/mkdir.c
_AT_@ -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();
-- 
1.8.4.rc3
--LQksG6bCIzRHxTLp
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0002-Make-chmod-honor-S_ISVTX.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sun Oct 20 2013 - 11:24:02 CEST