28a6afe975
Roy Walker writes:
Eric Andersen
2006-03-20 17:37:00 +00:00
c30f445b08
Patch from tito, acked by Bernhard Fischer.
Rob Landley
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.)
Rob Landley
2006-03-20 01:43:29 +00:00
99a072d524
- tito writes: this patch fixes some comments in dos2unix that are wrong or that reports non existent features (that i've ripped out...)
Bernhard Reutner-Fischer
2006-03-18 23:05:37 +00:00
2523da259c
- explain what magic numbers we're using here.
Bernhard Reutner-Fischer
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])
Bernhard Reutner-Fischer
2006-03-18 15:59:29 +00:00
263e75d051
- fix order of includes.
Bernhard Reutner-Fischer
2006-03-18 11:59:55 +00:00
9aa7f2005d
declare const id argument const for probe_{ext2,ext3,cramfs}
Mike Frysinger
2006-03-18 04:17:59 +00:00
179f417788
need string.h as well as strings.h
Mike Frysinger
2006-03-18 04:13:32 +00:00
25f67d419d
need EXT2FS_OBJS for fsck
Mike Frysinger
2006-03-18 04:11:51 +00:00
6bc10635f8
Make the new chroot environment creation infrastructure more flexible about non-absolute paths.
Rob Landley
2006-03-18 03:01:57 +00:00
dcb2122e85
My mount testsuite. Not automatically run at the moment, need to figure out how to (optionally) supply User Mode Linux to runtests.
Rob Landley
2006-03-18 03:00:22 +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.
Rob Landley
2006-03-18 02:58:11 +00:00
aae8b3405e
Whitespace cleanup and minor tweak (return -ERRNO instead of ERRNO so EPERM doesn't register as a successful read-only mount.
Rob Landley
2006-03-18 02:38:10 +00:00
5a57821565
Bug fix: umount wasn't detaching loop devices unless mtab support was enabled. Made some whitespace cleanups while I was there.
Rob Landley
2006-03-17 03:30:05 +00:00
2824ded677
More test updates.
Rob Landley
2006-03-16 16:02:06 +00:00
4bb1b04fd1
Redo test suite to be able to test more than one command at a time. Eliminate $COMMAND environment variable, instead put full command line (including command to run) in second argument. Modify $PATH to have test versions of commands at start of path. (Also more infrastructure for testing as root, work in progress...)
Rob Landley
2006-03-16 15:20:45 +00:00
ea9a471acd
Random in-passing tweak.
Rob Landley
2006-03-16 14:40:27 +00:00
187e352b7f
Update for bug 14.
Rob Landley
2006-03-15 17:09:56 +00:00
330ac853e3
Tito shrank dos2unix.
Rob Landley
2006-03-14 21:49:18 +00:00
31642d75e1
More "extern" removals from Robert P. Day
Rob Landley
2006-03-14 21:45:38 +00:00
386f85eadf
Attempt to make a warning go away without increasing size.
Rob Landley
2006-03-14 21:13:48 +00:00
d221d2137f
Missed one.
Rob Landley
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.
Rob Landley
2006-03-14 18:16:25 +00:00
0b22c1c962
Tito unified fdflush and freeramdisk. I tweaked the result a bit.
Rob Landley
2006-03-14 02:40:51 +00:00
2f135fc6bf
update comments as to what caused the defines to change
Mike Frysinger
2006-03-13 23:48:18 +00:00
ef7ccac9da
- add two comments
Bernhard Reutner-Fischer
2006-03-13 20:32:48 +00:00
a25d83b282
- remove superfluous dependency which was fixed in r14527
Bernhard Reutner-Fischer
2006-03-13 19:30:06 +00:00
df10094870
- revert back to r14406
Bernhard Reutner-Fischer
2006-03-13 19:04:00 +00:00
c5b1d4d6b1
Patch from Denis Vlasenko to add xstat() and use it.
Rob Landley
2006-03-13 15:45:16 +00:00
965030e35a
Update documentation.
Rob Landley
2006-03-13 04:38:40 +00:00
19808fea76
"make help" should not build the configurator first.
Rob Landley
2006-03-13 03:19:46 +00:00
9dc6913896
Fix "rm .config;make menuconfig" to work like "rm .config; make" (I.E. do defconfig first), and group busybox administrative settings into a sub-menu.
Rob Landley
2006-03-13 02:52:23 +00:00
e01d746fe9
Cleanup patch from tito.
Rob Landley
2006-03-12 19:26:01 +00:00
1c60d9762e
Size reduction by Tito.
Rob Landley
2006-03-11 18:22:35 +00:00
9e094552c8
fix building with glibc-2.4
Mike Frysinger
2006-03-10 23:41:29 +00:00
c70240cc1d
add a sep option for stripping
Mike Frysinger
2006-03-10 23:20:48 +00:00
72d59dbd76
rearrange the menu a little to split general settings from applet selection
Mike Frysinger
2006-03-10 23:17:17 +00:00
ead19306f5
Cleanup patches from tito.
Rob Landley
2006-03-10 23:16:25 +00:00
bc68cd14cc
Patch from Denis Vlasenko turning static const int (which gets emitted into the busybox binary) into enums (which don't).
Rob Landley
2006-03-10 19:22:06 +00:00
dae6aa2859
Fixup to the previous (portability) patch. Linux actually does need arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
Rob Landley
2006-03-09 22:39:08 +00:00
1f305dc0fd
Portability patch from rfelker. The bb_asprintf.c thing needs an eventual follow up in platform.h to set the #ifdef, but the workaround works for everybody, so...
Rob Landley
2006-03-09 22:21:20 +00:00
3a324754f8
I'm about to introduce tests that need to run as root (like mount.tests), meaning we want to run them in a chroot environment. To help with this, I worked out a utility function that makes it really easy to set up a chroot environment.
Rob Landley
2006-03-09 22:04:33 +00:00
31e3610c4b
Cleanup from Paul Fox. One find piped to xargs is faster/simpler than lots of finds doing individual -exec rm.
Rob Landley
2006-03-09 22:01:05 +00:00
ac664e07df
Mention a few web browsers.
Rob Landley
2006-03-09 18:20:43 +00:00
d48633fa6f
They won't stop asking, but we can point them to the specific entry...
Rob Landley
2006-03-09 18:03:21 +00:00
49a5599ae9
Patch from Denis Vlasenko to make unlzma smaller.
Rob Landley
2006-03-09 17:51:25 +00:00
478a188e85
- remove check. Fixes e.g. buildroot
Bernhard Reutner-Fischer
2006-03-09 16:49:46 +00:00
39a9fddb53
- fix typo
Bernhard Reutner-Fischer
2006-03-09 16:49:01 +00:00
07a79e75f5
- backout using features which are not available with the previous stable version of make (3.71.1).
Bernhard Reutner-Fischer
2006-03-09 09:03:37 +00:00
874af85d5e
import most of e2fsprogs 1.38 updates
Mike Frysinger
2006-03-08 07:03:27 +00:00
0f2dd9f4eb
vi-mode changes: eliminate warnings from out-of-range-for-type case labels that are emitted by gcc4. rearrange macros to eliminate these extra case labels entirely (since the optimizer may no longer do it for us). eliminate static BUFSIZ character deletion buffer -- malloc it, and make it much much smaller.
Paul Fox
2006-03-07 20:26:11 +00:00
dfba741457
Robert P. Day removed 8 gazillion occurrences of "extern" on function definitions. (That should only be on prototypes.)
Rob Landley
2006-03-06 20:47:33 +00:00
1f5e25bf3e
Walt Wimer noticed that mknod couldn't handle major or minor > 255. Now our limit checking autodetects what the system supports (at compile time).
Rob Landley
2006-03-06 19:31:39 +00:00
2e9cf373a9
- workaround bug in make-3.81beta4: - has to use /top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/file.c instead of the proper /top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/dir/file.c
Bernhard Reutner-Fischer
2006-03-06 14:20:43 +00:00
a59721166a
- work around missing features and bugs in make-3.79.1: - no order-only prerequisites; incomplete workaround (see comment in diff) - no internal variable MAKEFILE_LIST; workaround - define bar\nfoo:=<long-list> doesn't work; workaround also: - reinstate clean, distclean as noconfig_target. - unconditionally clean libbusybox.so*
Bernhard Reutner-Fischer
2006-03-06 14:19:15 +00:00
56ee779074
clean *.osm as pointed out by Robert P. J. Day
Mike Frysinger
2006-03-05 18:04:23 +00:00
33b45a09a1
clean busybox_unstripped as pointed out by Robert P. J. Day
Mike Frysinger
2006-03-05 16:25:19 +00:00
688ed0d760
Patch from Robert P. Day, moving byte order checks to use platform.h macros.
Rob Landley
2006-03-04 22:40:25 +00:00
d9969ea175
- correct comment. Should revisit gcc >= 4.1 with that =1 later on
Bernhard Reutner-Fischer
2006-03-03 20:31:33 +00:00
06ec8cff83
Typo fixes brought to you by the letters a, l, and Robert P. Day.
Rob Landley
2006-03-03 19:02:50 +00:00
cbd1c85744
Kill off some unused code that was wasting several k, as noticed by Denis Vlasenko when building with -ffunction-sections -fdata-sections
Eric Andersen
2006-03-03 18:37:39 +00:00
c05dda4b2d
Denis Vlasenko noticed that falign=0 is meaningless, and that should probably be falign=1. Saves a little over 3k on an x86 "make defconfig" build.
Rob Landley
2006-03-03 17:57:50 +00:00
7ad83b4e2c
- ar cruP doesn't replace ('r') but unconditionally _adds_ all objects. landley, that one broke your tar-testing (see below).
Bernhard Reutner-Fischer
2006-03-03 14:19:15 +00:00
c8e278f54b
- make sure applets.o is rebuilt when the .config changes. - don't overwrite objects in the archive. Affected applets with name-clash mostly vs. libbb: iplink_main iproute_main iptunnel_main login_main run_parts_main
Bernhard Reutner-Fischer
2006-03-02 18:13:05 +00:00
9b6b894422
- allow for make /path/to/dir/file.o
Bernhard Reutner-Fischer
2006-03-02 17:38:15 +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.
Bernhard Reutner-Fischer
2006-03-02 17:33:25 +00:00
c0bb308389
- silence warning about "'free_and_close_stuff' used but never defined"
Bernhard Reutner-Fischer
2006-03-02 10:06:22 +00:00
cfc5d860e6
Denis Vlasenko writes: make sizes was rebuilding busybox - unstripped one!
Bernhard Reutner-Fischer
2006-03-02 09:44:32 +00:00
5d26126b9e
- fixes parallel builds (make -j) - use less resources for the buildsystem itself
Bernhard Reutner-Fischer
2006-03-01 22:54:48 +00:00
12c2429a42
Fixup to make warnings from the last patch go away.
Rob Landley
2006-03-01 21:36:18 +00:00
08abe64d91
Selinux fix from Jan Kiszka.
Rob Landley
2006-03-01 20:48:44 +00:00
b7f39732f8
- fix compilation of sed. error: static declaration of 'free_and_close_stuff' follows non-static declaration Tiny whitespace cleanup while at it, also make sure that we don't use CONFIG_ anymore.
Bernhard Reutner-Fischer
2006-03-01 20:14:16 +00:00
e7c43b66d7
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x) from before "if(x) free(x)".
Rob Landley
2006-03-01 16:39:45 +00:00
93f2286e6e
When gnu fails this one we shouldn't let it _hang_...
Rob Landley
2006-03-01 16:32:35 +00:00
e8e7811fb4
Yet more sed tests. Passing these is a to-do item for 1.1.2 or 1.2, not a 1.1.1 issue.
Rob Landley
2006-03-01 16:32:01 +00:00
325da7b509
use bb_xstrndup vs strndup. Thanks rfelker.
"Vladimir N. Oleynik"
2006-03-01 05:39:41 +00:00
5c2b238b3a
more busybox's style: close bug 745
"Vladimir N. Oleynik"
2006-02-28 10:15:42 +00:00
716bbe96d4
make grep faster (close bug 758), reduce small memory leak in CONFIG_FEATURE_CLEANUP mode
"Vladimir N. Oleynik"
2006-02-28 10:10:19 +00:00
73804d6f7e
more security: don't start shell code from argv
"Vladimir N. Oleynik"
2006-02-28 08:23:27 +00:00
8bbee85214
defconfig shouldn't enable CONFIG_INSTALL_NO_USR, and while we're at it remove residue of old defconfig and tweak "make with no config" to run defconfig before bringing up menuconfig.
Rob Landley
2006-02-28 05:26:13 +00:00
2fe4eac4ea
Cosmetic cleanup from tito.
Rob Landley
2006-02-28 04:45:24 +00:00
e813ddba18
Cleanup from Glenn McGrath.
Rob Landley
2006-02-28 03:53:14 +00:00
0817313255
- whitespace cleanup from Tito.
Bernhard Reutner-Fischer
2006-02-27 22:34:41 +00:00
4217bab02e
Patch from Glenn McGrath to remove code that opens a file but does nothing with it.
Rob Landley
2006-02-26 04:42:05 +00:00
5ba2fb2c9d
remove duplicate license notice
Mike Frysinger
2006-02-25 07:57:32 +00:00
983e0ca89e
strip out unneeded comments
Mike Frysinger
2006-02-25 07:42:02 +00:00
5c06b277ce
fdisk unmaintained now :(
"Vladimir N. Oleynik"
2006-02-25 07:20:15 +00:00
5527b9117e
Another clean-up patch from Garrett.
Rob Landley
2006-02-25 03:46:10 +00:00
736e52532e
Minor cleanup from Garrett Kajmowicz.
Rob Landley
2006-02-25 03:36:00 +00:00
b73451daee
Cleanup from Denis Vlasenko.
Rob Landley
2006-02-24 16:29:00 +00:00
75cc0cace3
I was playing around with a dependency generator a couple weeks ago and I found some #include files that aren't in the tree. No biggie...
Rob Landley
2006-02-24 03:15:34 +00:00
883e0e83f2
Missed one in the get_line_from_file() update...
Rob Landley
2006-02-24 03:12:03 +00:00
3cb94d2eb3
Move FAQ under docs, add programming.html to docs list.
Rob Landley
2006-02-24 02:55:24 +00:00
f6ddadc172
Mention patches directory as a read-only svn alternative.
Rob Landley
2006-02-24 02:48:49 +00:00
2b26fd5570
A few changes falling out from the effort to make sed handle embedded NUL bytes. Checking in to reduce the diff between my tree and svn...
Rob Landley
2006-02-24 02:30:39 +00:00
5c22c11de2
Add a test suite for seq.
Rob Landley
2006-02-24 01:45:58 +00:00
0612b5fa68
add exception for uncuddling brackets
Mike Frysinger
2006-02-24 01:18:24 +00:00
6b6edf959d
Lots of tests the fix to sed needs to pass...
Rob Landley
2006-02-23 23:13:16 +00:00