[BusyBox-cvs] busybox/libbb parse_mode.c,1.5,1.6
Manuel Novoa III
mjn3 at busybox.net
Wed Mar 19 18:09:06 UTC 2003
Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv9567/libbb
Modified Files:
parse_mode.c
Log Message:
Restrict octal perms to <= 07777. Cosmetic error message change.
Index: parse_mode.c
===================================================================
RCS file: /var/cvs/busybox/libbb/parse_mode.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- parse_mode.c 19 Mar 2003 09:12:07 -0000 1.5
+++ parse_mode.c 19 Mar 2003 18:09:02 -0000 1.6
@@ -65,7 +65,7 @@
char *e;
tmp = strtol(s, &e, 8);
- if (*e || (tmp > 0xffffU)) { /* Check range and trailing chars. */
+ if (*e || (tmp > 07777U)) { /* Check range and trailing chars. */
return 0;
}
*current_mode = tmp;
More information about the busybox-cvs
mailing list