948a09d6f2
dont printf arguments given by user for security sanity
2006-03-23 02:07:20 +00:00
3ea05d3222
Fix missing copyright and license notice.
2006-03-21 18:20:40 +00:00
e3f4ab2bc4
Remove unneeded entries.
2006-03-20 18:40:07 +00:00
9601a1c8c2
whitespace cleanup
2006-03-20 18:07:50 +00:00
19b5b8ff6a
Fix some obvious compile problems. Make the -f' fakeIt option actually work.
2006-03-20 18:07:13 +00:00
c30f445b08
Patch from tito, acked by Bernhard Fischer.
2006-03-20 02:20:18 +00:00
e2b428cbb1
Use lstat() instead of stat so /init being a symlink doesn't screw people up.
...
(And use it consistently, for size reasons.)
2006-03-20 01:43:29 +00:00
2523da259c
- explain what magic numbers we're using here.
2006-03-18 23:02:45 +00:00
66753a3850
- whitespace cleanup (and also check against the const first and only then look
...
at bb_applet_name[1])
2006-03-18 15:59:29 +00:00
eaa34ca5b4
More fixes. Type "auto" should mean unspecified from fstab as well as the
...
command line, initialize singlemount's rc to an error value so it doesn't
think it succeeded when it didn't, use absolute path when associating a
loop device (and the previous FEATURE_CLEAN_UP logic related to that was
freeing the wrong thing), move reading of /proc/filesystems to where we can
re-read it (when it's empty) for every entry on a "mount -a" so that when
/proc is mounted as the first entry, the later filesystems can autodetect
filesystem type.
2006-03-18 02:58:11 +00:00
5a57821565
Bug fix: umount wasn't detaching loop devices unless mtab support was enabled.
...
Made some whitespace cleanups while I was there.
2006-03-17 03:30:05 +00:00
d221d2137f
Missed one.
2006-03-14 20:06:44 +00:00
dc0955b603
The new, new mount rewrite. (Mount double prime?) Still being debugged, but
...
the new infrastructure is reentrant so in theory it's capable of handling
mount -a sanely. It can also re-use existing flags with remount, handle
-t auto, mount -a -t, and several smaller bugfixes.
2006-03-14 18:16:25 +00:00
0b22c1c962
Tito unified fdflush and freeramdisk. I tweaked the result a bit.
2006-03-14 02:40:51 +00:00
df10094870
- revert back to r14406
2006-03-13 19:04:00 +00:00
c5b1d4d6b1
Patch from Denis Vlasenko to add xstat() and use it.
2006-03-13 15:45:16 +00:00
bc68cd14cc
Patch from Denis Vlasenko turning static const int (which gets emitted into
...
the busybox binary) into enums (which don't).
2006-03-10 19:22:06 +00:00
07a79e75f5
- backout using features which are not available with the previous stable
...
version of make (3.71.1).
2006-03-09 09:03:37 +00:00
dfba741457
Robert P. Day removed 8 gazillion occurrences of "extern" on function
...
definitions. (That should only be on prototypes.)
2006-03-06 20:47:33 +00:00
022eb311d5
- use absolute path for top_builddir and top_srcdir.
...
Fixes make trying to include the very same file in an endless loop.
2006-03-02 17:33:25 +00:00
5d26126b9e
- fixes parallel builds (make -j)
...
- use less resources for the buildsystem itself
2006-03-01 22:54:48 +00:00
73804d6f7e
more security: don't start shell code from argv
2006-02-28 08:23:27 +00:00
5ba2fb2c9d
remove duplicate license notice
2006-02-25 07:57:32 +00:00
983e0ca89e
strip out unneeded comments
2006-02-25 07:42:02 +00:00
5c06b277ce
fdisk unmaintained now :(
2006-02-25 07:20:15 +00:00
5527b9117e
Another clean-up patch from Garrett.
2006-02-25 03:46:10 +00:00
736e52532e
Minor cleanup from Garrett Kajmowicz.
2006-02-25 03:36:00 +00:00
b73451daee
Cleanup from Denis Vlasenko.
2006-02-24 16:29:00 +00:00
ed7bb6278d
- put NLS stuff in one central place to avoid redefines.
...
Fixes warnings about:
fdisk.c:45:1: warning: "_" redefined
nfsmount.c:121:1: warning: "_" redefined
nfsmount.c:122:1: warning: "N_" redefined
interface.c:84:1: warning: "_" redefined
2006-02-23 14:25:15 +00:00
d6e14d8bee
Don't build directory libraries unless we're building an applet that needs it.
...
Cherry-picked from Devin Bayer's big MacOS X patch.
2006-02-21 19:11:35 +00:00
a7e3d05208
Create /dev/root symlink pointing to real root device, if any.
2006-02-21 06:11:13 +00:00
0a6b0bfa7a
add setarch/linux32/linux64 applet
2006-02-21 04:26:52 +00:00
d05981eaf1
Fix off by one error. (I know I had a reason for doing that, but I have _no_
...
idea what it was...)
2006-02-14 07:33:45 +00:00
cc6d8d30ec
Fix umount so it works if there's no /etc/mtab or /proc/mounts, make
...
umount -a into a CONFIG_FEATURE (why not?), and zap the now obsolete
defconfig file (which was supposed to be part of the previous checkin).
2006-02-08 20:06:57 +00:00
271aa40a15
add back in path nulling after calling find_dev() since it is needed for now ...
2006-02-07 06:10:45 +00:00
a421ba8203
cleanup style ... just because you use less spaces doesnt mean the resulting code is smaller
2006-02-03 00:25:37 +00:00
248d2220f9
shrink the code a bit
2006-02-03 00:19:42 +00:00
53d57dbe6b
gavinl writes in Bug 661:
...
if read() file return less than 1, we should close the fd and then goto end.
2006-02-03 00:16:53 +00:00
5509228a7b
alphabetical order and fix mdev comments about echo>/sys vs echo>/proc/sys
2006-02-02 23:14:57 +00:00
b38673fb9f
make the build system puuuuuuuuuuurty
2006-02-02 01:41:53 +00:00
b399a96343
remode warning: const static mix
2006-02-01 12:41:35 +00:00
3038557649
- bzero -> memset
...
text data bss dec hex filename
1652855
14444 1215616 2882915 2bfd63 busybox.oorig.gcc-3.3
1652823 14444 1215616 2882883 2bfd43 busybox.gcc-3.3
1603655 14412 1215552 2833619 2b3cd3 busybox.oorig.gcc-3.4
1603655 14412 1215552 2833619 2b3cd3 busybox.gcc-3.4
1609755 14508 1215744 2840007 2b55c7 busybox.oorig.gcc-4.0
1609755 14508 1215744 2840007 2b55c7 busybox.gcc-4.0
1590495 13516 1215392 2819403 2b054b busybox.oorig.gcc-4.1-HEAD
1590495 13516 1215392 2819403 2b054b busybox.gcc-4.1-HEAD
1589079 13036 1213248 2815363 2af583 busybox.oorig.gcc-4.2-HEAD
1589079 13036 1213248 2815363 2af583 busybox.gcc-4.2-HEAD
2006-01-31 17:57:48 +00:00
9f4a1e1c75
- add and use ATTRIBUTE_ALIGNED(num_bytes)
...
- remove unused parameter pindex from fdisk.c, xbsd_initlabel()
2006-01-31 09:53:53 +00:00
3496fdc9a5
hopefully the last of the annoying signed/unsigned and mixed type errors
2006-01-30 23:09:20 +00:00
c1ef7bdd8d
just whitespace
2006-01-25 00:08:53 +00:00
e927743bb0
There was a missing ! on strcmp (despite the fact it worked in my testing,
...
I have no idea _how_), and a simpler fix for the extra \n problem. I tested
this and it worked for me, for what that's worth...
2006-01-22 23:14:16 +00:00
86f5c9906b
- add platform.h.
...
- use shorter boilerplate while at it.
2006-01-22 22:55:11 +00:00
7ca61b6f33
- shared libbusybox.
...
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
2006-01-15 14:04:57 +00:00
4a1865ca5e
- revert last change for now..
2006-01-13 18:11:59 +00:00
5a62284972
this applet needlessly big! TODO: bb_getopt_ulflags()
...
- use atol for the offset, which is always in bytes. Small step in eventually dropping bb_xparse_number().
2006-01-13 17:29:46 +00:00