24f819fd74
can use TMPDIR if user's HOMEDIR do not found. Noticed by Bernhard
"Vladimir N. Oleynik"
2006-01-10 12:35:43 +00:00
bc059bc7fa
The brain-dead FTP servers on Solaris don't support the size command.
Rob Landley
2006-01-10 06:36:00 +00:00
9e4100bf95
Don't return 0 when there's an error.
Rob Landley
2006-01-10 06:19:56 +00:00
71d6ccd801
With -a, the jump to mount_it_now can skip the initialization of f, and if we don't zero it after closing it we re-close a filehandle that isn't open, and since this is a file _pointer_ it segfaults on a double free.
Rob Landley
2006-01-10 05:30:28 +00:00
8b0efdb1a1
Both atime and diratime should switch _off_ the corresponding no* flag.
Rob Landley
2006-01-10 02:37:20 +00:00
bd67e8074a
upgrade ZyXEL from hall of shame to hall of [product] fame
Mike Frysinger
2006-01-10 01:43:40 +00:00
f01e1784e5
removed a warning about an unused pargv in bb_getopt_ulflags. Noticed by Tito
"Vladimir N. Oleynik"
2006-01-09 13:28:31 +00:00
5184336647
Bug 112, return value of awk should be /256. In reality, we should probably be using WEXITSTATUS(), but until I can figure out why the heck that would want to do (*(int *) &(status)) on the value, I'm happy just fixing the bug we actually see.
Rob Landley
2006-01-09 05:26:58 +00:00
fb8c4983a6
Fix bug 603: "chown :root thingy" should work now.
Rob Landley
2006-01-09 03:45:43 +00:00
e569553aa0
Bug 547: writing out the tar file header before we confirm we can actually open and read from the file isn't something we can recover from after the fact. Resequence things to check first, write second.
Rob Landley
2006-01-09 03:07:44 +00:00
3d1bbf0a5f
Minor cosmetic fix from Tito.
Rob Landley
2006-01-09 01:07:24 +00:00
8bcc6e964b
Why we didn't take a watchdog.c suggestion this time 'round, in case anybody comes up with a fix...
Rob Landley
2006-01-09 00:54:46 +00:00
e87ae0bd4f
declare const for fun
Mike Frysinger
2006-01-08 11:15:53 +00:00
e885d5300a
Tito writes: Somehow while applying the bb_do_delay patch a change slipped in libbb.h that broke compilation.
Mike Frysinger
2006-01-08 11:15:34 +00:00
84cb76733f
patch from tito: consolidate delay functions as bb_do_delay()
Rob Landley
2006-01-06 20:59:09 +00:00
251161f75c
Bug 624 wants quoted char support for printf, so you can do something like: printf '%d\n' '"x"' and have it print out 120. This is the smallest implementation I can think of at the moment.
Rob Landley
2006-01-06 20:28:05 +00:00
f8ec1b51f3
No, we _want_ the suid and sgid bits reverted by chown, for security reasons. They mean something different when the user they're switching to is different, so if you still want suid you reset it afterwards. This is a safety feature.
Rob Landley
2006-01-06 18:22:05 +00:00
c00411a16a
- better wording
Bernhard Reutner-Fischer
2006-01-04 13:35:09 +00:00
5990efb795
use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)
Mike Frysinger
2006-01-04 07:31:19 +00:00
b92405552f
Jason Schoon writes: Here is a patch for kill that I posted long ago, but forgot about until today. This allows kill to specify a negative process/group (such as -1). The shell already had this fix applied by Vodz some time ago.
Mike Frysinger
2006-01-04 00:13:22 +00:00
f982d86ba7
import nios2 support from microtronix
Mike Frysinger
2006-01-04 00:11:26 +00:00
29ed59ee11
make mount usage a bit more terse
Mike Frysinger
2006-01-04 00:04:08 +00:00
705fad2964
just use bb_xfopen()
Mike Frysinger
2006-01-03 23:59:17 +00:00
bb12d6f728
fix comment documentation
Mike Frysinger
2006-01-03 23:59:01 +00:00
823f80f5ad
- silence warning about unused param needs revisit later on like many others to use ATTRIBUTE_UNUSED from platform.h
Bernhard Reutner-Fischer
2005-12-29 21:17:05 +00:00
f00680eb59
- use HOSTCC instead of a hardcoded cc
Bernhard Reutner-Fischer
2005-12-29 16:53:47 +00:00
0bf67e849a
remove buffer overflow by Erik and decodeString problem by Glenn, add error check of decodeString as Apache
"Vladimir N. Oleynik"
2005-12-26 17:26:59 +00:00
ce88793698
When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.
Rob Landley
2005-12-21 17:00:25 +00:00
9085467970
Trying to losetup a device as a regular user shouldn't result in an endless loop, and the error messages should display correctly now.
Rob Landley
2005-12-21 16:53:57 +00:00
beb665a376
Second attempt to simplify the login menu. Shadow password stuff at the top, with no dependencies (since depending on 9 of the 13 apps in the menu gets a bit silly). And fix my attempt to make internal shadow password support automatically depend on internal password support plus shadow password support.
Rob Landley
2005-12-21 16:33:41 +00:00
17329745fc
- fix check for group and user, remove some whitespace while at it.
Bernhard Reutner-Fischer
2005-12-21 15:07:30 +00:00
5d84c2398e
Fix chroot, leave console alone if -c not specified, and yank debug code. (I still haven't set up a test environment to confirm this works...)
Rob Landley
2005-12-20 17:25:51 +00:00
7b363fd3c9
Some minor cleanups/bugfixes split off from the big remount work: Shorten GPL boilerplate. Enabling FEATURE_CLEAN_UP broke things in two places. Move the NFS with uClibc check to nfsmount.c
Rob Landley
2005-12-20 17:18:01 +00:00
b9620414c1
Shadow password support went beyond the dependency event horizon, just make it an independent menu. And make internal shadow password support a subset of the other internal password function support.
Rob Landley
2005-12-20 15:25:25 +00:00
6a24976ceb
Actually, static buffers look like _this_...
Rob Landley
2005-12-20 15:23:20 +00:00
6b903a2d8a
remove debug feature for production
"Vladimir N. Oleynik"
2005-12-20 11:02:54 +00:00
9a1e25d994
Make a few warnings go away.
Rob Landley
2005-12-19 16:30:33 +00:00
c90c8b50e4
Do an svn log -v, the information in this changelog is stunningly obsolete.
Rob Landley
2005-12-19 16:29:19 +00:00
b3f05a467a
Shadow password support involves vlock too.
Rob Landley
2005-12-19 02:52:48 +00:00
68eb9dd371
Patch from Tito to make vlock much smaller.
Rob Landley
2005-12-19 02:50:10 +00:00
553d83d427
strncmp isn't automatically superior to strcmp. Especially when it isn't used right.
Rob Landley
2005-12-18 20:34:41 +00:00
9bdd742dd2
Sigh. Left the debug path in. Fixed.
Rob Landley
2005-12-17 10:54:17 +00:00
b56c285da5
Added /etc/mdev.conf support. Adds about 1.9k to mdev.
Rob Landley
2005-12-17 10:52:30 +00:00
1a78103306
Bug 601: When we fork an archiver and feed stuff to it through a pipe, if we don't close the pipe the child process won't exit, and we'll hang in waitpid().
Rob Landley
2005-12-16 21:33:10 +00:00
ef1f7b5058
Ahem. Vladimir checked in a different fix bug didn't close out the bug. Reverting...
Rob Landley
2005-12-16 08:03:34 +00:00
4b91b88fcb
Less would segfault if it had no tty. (Bug 600.)
Rob Landley
2005-12-16 08:02:11 +00:00
199501f2a0
I screwed up the last commit: if dt is null when ENABLE_MULTIPLE_OPTIONS is off, we'd dereference the null. Oops.
Rob Landley
2005-12-16 06:18:06 +00:00
a930bd3332
Stephane Billiart said:
Rob Landley
2005-12-16 06:12:46 +00:00
ddc280ec43
sync license from mainstream
"Vladimir N. Oleynik"
2005-12-15 12:01:49 +00:00
8315cd527f
fopen(TTY...) to bb_xfopen(), close bug 600
"Vladimir N. Oleynik"
2005-12-15 11:53:22 +00:00
9a14bd04f8
- Stephane Billiart writes: Fix the compilation of head and tail.
Bernhard Reutner-Fischer
2005-12-15 11:47:16 +00:00
73bffd4d96
- remove duplicate entry for switch_root
Bernhard Reutner-Fischer
2005-12-15 11:44:31 +00:00
42eddbafe7
Add a fflush(stdout).
Rob Landley
2005-12-15 08:04:17 +00:00
ae50c6d8ee
Better use of the ENABLE guards.
Rob Landley
2005-12-15 07:42:13 +00:00
e0c418e13b
The rest of Yann E. Morin's install revamp.
Rob Landley
2005-12-15 07:25:54 +00:00
164c5c80ba
Eliminate unnecessary allocation from md5sum that was leaked without ever being used.
Rob Landley
2005-12-15 06:51:52 +00:00
5aabf4e415
Fix -g and -p options. Patch from Traceman. (I don't know who that is, it's the darn bug generator again.)
Rob Landley
2005-12-15 05:42:55 +00:00
483027f166
Patch from dlively (whoever that is, see bug 591) to fix "ip link set <dev> addr".
Rob Landley
2005-12-15 05:29:48 +00:00
d42ef28b98
- several functions depend on IPv4 or IPv6 od IPX support. removes warning about unused code for allbareconfig.
Bernhard Reutner-Fischer
2005-12-14 14:13:15 +00:00
17d355cb3c
- remove warning (thanks Yann E. MORIN) and switch to ENABLE_ - typo: s/begining/beginning/g
Bernhard Reutner-Fischer
2005-12-14 08:32:44 +00:00
e6d88ea2a1
remove sigsetmask, noticed by Bernhard
"Vladimir N. Oleynik"
2005-12-13 13:24:23 +00:00
e0b8778506
- check if CC supports -funsigned-char - add CC_MAJOR and CC_MINOR variables. (gcc centric for now)
Bernhard Reutner-Fischer
2005-12-13 11:52:46 +00:00
5816ccb190
- wrap label GET_COUNT in #if ENABLE_FEATURE_FANCY_applet to avoid warning about unused label.
Bernhard Reutner-Fischer
2005-12-13 10:48:45 +00:00
ec351c32e3
- do away with superfluous keyword.
Bernhard Reutner-Fischer
2005-12-13 10:28:25 +00:00
4a9d6d1fe9
remove strange bloat dup2() usage, sync this code with mainstream login-utils, size reduce
"Vladimir N. Oleynik"
2005-12-13 08:44:41 +00:00
70f7ef7be3
Nothing to see here. Move along.
Rob Landley
2005-12-13 08:21:33 +00:00
3858bf18d5
Minor fix: if(CONFIG) breaks the build when that CONFIG is disabled, it has to be if(ENABLE). (Make allbareconfig is a good testing thing.)
Rob Landley
2005-12-13 04:06:22 +00:00
e919096271
Patch from Yann E. Morin, something to do with bugs 276 and 272.
Rob Landley
2005-12-12 19:38:44 +00:00
126da9ec2d
- typo: s/sucess/success/g What's up with loginutils/su.c line 42: "SYSLOG_SUCESS" ? Please have a look..
Bernhard Reutner-Fischer
2005-12-12 11:20:39 +00:00
b7d5342003
- fix zcip for IMA compile mode. rename usage() to zcip_usage, make struct arp_packet static. This applet is not ISO C89 compatible due to the use of C99-style comments ("c++ comments).
Bernhard Reutner-Fischer
2005-12-12 10:21:35 +00:00
10fb2b71f3
Flush output to log promptly (bug 389).
Rob Landley
2005-12-12 07:04:59 +00:00
e422af6bcb
Flush input when prompting for a password (bug 373).
Rob Landley
2005-12-12 07:02:15 +00:00
a75c180e53
Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally modifying permissions or ownership when twiddling symlinks.
Rob Landley
2005-12-12 06:58:53 +00:00
cdbae77823
printf() arguments shouldn't be passed straight from user supplied data. (Security thingy.)
Rob Landley
2005-12-12 06:49:33 +00:00
37310ea057
Change CONFIG_MODPROBE_MULTIPOLE_OPTIONS to CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS.
Rob Landley
2005-12-12 04:28:17 +00:00
762bb626c7
Patch from Yann E. Morin to reorganize module config options.
Rob Landley
2005-12-11 20:20:05 +00:00
999af20d3e
Make insmod quiet by default (patch from Yann E. Morin).
Rob Landley
2005-12-11 20:14:12 +00:00
9c32a15220
Yann E. Morin's update to modprobe usage.
Rob Landley
2005-12-11 20:12:24 +00:00
82327f4be4
Patch from Yann E. Morin to make rmmod report failure properly.
Rob Landley
2005-12-11 19:46:50 +00:00
0bd0257fe0
Add build options to control SuS compatability, allows numeric option handling to be disabled. Defaults to enabled, so no changes in default behaviour
Glenn L McGrath
2005-12-11 03:09:05 +00:00
d77b781c1f
- remove unused variable have_read_stdin - use FLAG_WIDTH
Bernhard Reutner-Fischer
2005-12-10 20:13:54 +00:00
377bdaff3b
avoid mixed declarations, to support older compilers just a little longer.
Paul Fox
2005-12-08 18:48:20 +00:00
cc59aae65f
Macro was wrong, name(void) vs name(x), and apparently gcc 2.95 cares about matching up macro arguments even when the macro substitutes to nothing...
Rob Landley
2005-12-07 23:17:28 +00:00
07fffc5add
uClibc can't handle anonymous MAP_SHARED. Since we're treating it as read only data anyway, MAP_PRIVATE shouldn't make a major difference.
Rob Landley
2005-12-07 22:45:28 +00:00
02bab6869e
Tito is using broken kernel headers that pollute the namespace with every CONFIG_ symbol in the kernel, and this clashes with busybox's CONFIG_TR and CONFIG_WATCHDOG, causing applets.h to barf if they're not switched on (since the broken headers don't affect kconfig or the makefiles).
Rob Landley
2005-12-06 22:48:29 +00:00
a62b0e7459
reduce 3 warning if compile with -W
"Vladimir N. Oleynik"
2005-12-06 12:20:57 +00:00
2f0a5f947a
restore compare_string_array new interface (make broken by landley)
"Vladimir N. Oleynik"
2005-12-06 12:00:39 +00:00
d4f15e95d6
Install links patch from Yann E. Morin. (Another thing hanging around in my tree forever. Tweaked the docs a bit.)
Rob Landley
2005-12-02 18:27:39 +00:00
d1569c215c
If we really _need_ an #ifdef like this, then we should be using the libbb getopt infrastructure instead.
Rob Landley
2005-12-02 17:57:23 +00:00
746cfc8bf0
Another cleanup patch that's been in my tree for a while. Again I think it's originally from Bernhard Fischer...
Rob Landley
2005-12-02 17:55:45 +00:00
b5ca9e0c4e
A cleanup patch I've had lying around in my tree for a while, I think it was from Bernhard Fischer?
Rob Landley
2005-12-02 17:54:01 +00:00
bf968f71f1
reduce signedness warning
"Vladimir N. Oleynik"
2005-12-02 10:10:28 +00:00
a972c870a8
reduce signedness warning
"Vladimir N. Oleynik"
2005-12-02 10:06:04 +00:00
27d42a08c8
remove warnings if compile with -W, use ENABLE_FEATURE vs CONFIG_FEATURE
"Vladimir N. Oleynik"
2005-12-02 09:46:04 +00:00
4a070d1460
Make char default to "unsigned" on all platforms so we have a consistent base to deal with all the new gcc 4.0.2 warnings from.
Rob Landley
2005-12-01 17:01:43 +00:00
1d589b2e2d
Fix losetup so that it A) actually works again, B) has much better error messages, C) can show the current association (if any) when called with only one argument. Update the documentation a lot too.
Rob Landley
2005-11-29 23:47:10 +00:00
70678bc5b6
getopt -> getopt_ulflags. noticed by Rob Sullivan
"Vladimir N. Oleynik"
2005-11-29 12:32:33 +00:00
5a5d0fa044
update license
Mike Frysinger
2005-11-29 02:53:52 +00:00
c5907cc380
ShaneAnderson writes in Bug 565: need to include .config file before setting CROSS otherwise TARGET_ARCH isnt set properly
Mike Frysinger
2005-11-29 02:53:23 +00:00