[BusyBox-cvs] busybox/libbb mode_string.c,1.3,1.4
Manuel Novoa III
mjn3 at busybox.net
Thu Aug 14 02:28:52 UTC 2003
Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv14816
Modified Files:
mode_string.c
Log Message:
Fix a bug reported by junkio at cox.net involving the mode_chars index.
Index: mode_string.c
===================================================================
RCS file: /var/cvs/busybox/libbb/mode_string.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mode_string.c 19 Mar 2003 09:12:07 -0000 1.3
+++ mode_string.c 14 Aug 2003 02:28:49 -0000 1.4
@@ -20,6 +20,11 @@
*
*/
+/* Aug 13, 2003
+ * Fix a bug reported by junkio at cox.net involving the mode_chars index.
+ */
+
+
#include <assert.h>
#include <sys/stat.h>
@@ -119,7 +124,7 @@
} while (++j < 3);
++i;
if (mode & (010000 >> i)) {
- *p = mode_chars[3 + k + (i >> 1)];
+ *p = mode_chars[3 + (k & 2) + (i == 3)];
}
} while (i < 3);
More information about the busybox-cvs
mailing list