[BusyBox] Patches for auto "-A" and for doubling of bytes
David Douthitt
ssrat at mailbag.com
Tue Mar 20 15:52:10 UTC 2001
The byte-double problem is STILL present in Busybox 0.50 (released
version). Included is the patch (again) to fix it.
Also, re: wishlist item #1112, here is the patch against busybox 0.50.
I remember Vlad didn't find the case particularly compelling, thus I
would strongly encourage updating it to be an option. I'll probably do
this and post it if no one else does....
-------------- next part --------------
--- ls.c Fri Mar 9 15:24:12 2001
+++ ls.c.2.new Tue Mar 20 09:45:21 2001
@@ -836,6 +836,13 @@
}
}
+ if ((geteuid()) == 0) {
+
+ /* equivalent to '-A' option automatically set for root */
+
+ disp_opts |= DISP_HIDDEN;
+ }
+
/* sort out which command line options take precedence */
#ifdef BB_FEATURE_LS_RECURSIVE
if (disp_opts & DISP_NOLIST)
-------------- next part --------------
--- ls.c Fri Mar 9 15:24:12 2001
+++ ls.c.new Tue Mar 20 09:43:47 2001
@@ -614,9 +614,9 @@
(ls_disp_hr==TRUE)? 0: 1));
#else
#if _FILE_OFFSET_BITS == 64
- printf("%4lld ", dn->dstat.st_blocks>>1);
+ printf("%4lld ", dn->dstat.st_blocks);
#else
- printf("%4ld ", dn->dstat.st_blocks>>1);
+ printf("%4ld ", dn->dstat.st_blocks);
#endif
#endif
column += 5;
More information about the busybox
mailing list