aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Tito writes:andersen2004-09-021-2/+2
| | | | | | | | | | | | | The second patch contains: 1) a size optimization for adduser.c 2) removes a warning about an unused variable in syslogd.c if CONFIG_FEATURE_REMOTE_LOG is not set 3)cosmetic fixes for addgroup_full_usage and adduser_full_usage Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-09-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi Erik, Hi to all, This is part five of the my_get*id story. I've tweaked a bit this two functions to make them more flexible, but this changes will not affect existing code. Now they work so: 1) my_getpwuid( char *user, uid_t uid, int bufsize) if bufsize is > 0 char *user cannot be set to NULL on success username is written on static allocated buffer on failure uid as string is written to buffer and NULL is returned if bufsize is = 0 char *user can be set to NULL on success username is returned on failure NULL is returned if bufsize is < 0 char *user can be set to NULL on success username is returned on failure an error message is printed and the program exits 2) 1) my_getgrgid( char *group, uid_t uid, int bufsize) if bufsize is > 0 char *group cannot be set to NULL on success groupname is written on static allocated buffer on failure gid as string is written to buffer and NULL is returned if bufsize is = 0 char *group can be set to NULL on success groupname is returned on failure NULL is returned if bufsize is < 0 char *group can be set to nULL on success groupname is returned on failure an error message is printed and the program exits This changes were needed mainly for my new id applet. It is somewhat bigger then the previous but matches the behaviour of GNU id and is capable to handle usernames of whatever length. BTW: at a first look it seems to me that it will integrate well (with just a few changes) with the pending patch in patches/id_groups_alias.patch. The increase in size is balanced by the removal of my_getpwnamegid.c from libbb as this was used only in previous id applet and by size optimizations made possible in whoami.c and in passwd.c. I know that we are in feature freeze but I think that i've tested it enough (at least I hope so.......). git-svn-id: svn://busybox.net/trunk/busybox@9194 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The login applet should always be setuid rootandersen2004-08-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito documenting the '-q' optionandersen2004-08-191-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9128 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup 'dc' usageandersen2004-08-181-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9118 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito, farmatito at tiscali dot it writes:andersen2004-08-031-1/+1
| | | | | | | | | | | | | | Hi to all, This patch is useful for: 1) remove an unused var from extern char *find_real_root_device_name(const char* name) changing it to extern char *find_real_root_device_name(void). 2) fixes include/libbb.h, coreutils/df.c, util-linux/mount.c and util-linux/umount.c accordingly. 3) fixes a bug, really a false positive, in find_real_root_device_name() that happens if in the /dev directory exists a link named root (/dev/root) that should be skipped but is not. This affects applets like df that display wrong results git-svn-id: svn://busybox.net/trunk/busybox@9056 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Felipe Kellermann, fixup usage for pidof, poweroff, remove bug12004-07-231-7/+11
| | | | | | | some trailing '\n' git-svn-id: svn://busybox.net/trunk/busybox@9009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Felipe Kellermann, fixup usage for halt commandbug12004-07-231-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9008 69ca8d6d-28ef-0310-b511-8ec308f3f277
* iUpdate reboot usage, patch by Felipe Kellermannbug12004-07-231-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9007 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Felipe Kellermann to fix some typo'sbug12004-07-231-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9002 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito, ass usage for strings -a optionsbug12004-07-211-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8993 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replace the old and somewhat buggy pwd_grp stuff with the shinyandersen2004-07-153-111/+269
| | | | | | | new stuff mjn3 wrote for uClibc git-svn-id: svn://busybox.net/trunk/busybox@8956 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank:andersen2004-06-221-3/+0
| | | | | | | | | | | | | | On Sat, Jun 19, 2004 at 10:57:37PM +0200, Bastian Blank wrote: > The following patch changes klogd to use openlog/syslog themself > instead of calling syslog_msg which always calls the triple > openlog/syslog/closelog. Updated patch: get rid of syslog_msg entirely. Request from Erik Andersen. Bastian git-svn-id: svn://busybox.net/trunk/busybox@8913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank:andersen2004-06-221-2/+0
| | | | | | | | | | | | | | | The updated patch adds a config option to explicitely enable 64 bit arithmetic. Also it removes the arith prototype from libbb.h as it is not used outside of ash. Bastian this patch has been slightly modified by Erik for cleanliness. git-svn-id: svn://busybox.net/trunk/busybox@8910 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woops, the previous commit was an accident, its supplied in the patch,bug12004-06-051-13/+0
| | | | | | | dont commit yet as we are in feature freeze git-svn-id: svn://busybox.net/trunk/busybox@8886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Device table support for makedevs, the previous behaviour can beenbug12004-06-051-0/+13
| | | | | | | selected at configure time. git-svn-id: svn://busybox.net/trunk/busybox@8885 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Ahem. ("I'm just tweaking a documentation string, I don't need to compilelandley2004-05-261-1/+1
| | | | | | | | | | | test it before checking in..." New entry for famous last words list.) Add the missing backslash at the end of the new sed doc string line. (This one actually compiled with "show verbose applet usage messages"...) git-svn-id: svn://busybox.net/trunk/busybox@8883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update sed help. (Add -r option to long help, add -i option to brief help,landley2004-05-261-3/+4
| | | | | | | and alphabetizie the option list.) git-svn-id: svn://busybox.net/trunk/busybox@8882 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As discussed, drop minit, which was not being supported in busybox.andersen2004-05-262-38/+0
| | | | | | | | People wishing to use minit can obtain it and obtain support from http://www.fefe.de/minit/ git-svn-id: svn://busybox.net/trunk/busybox@8872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update dpkg-deb usage to match current practicesbug12004-05-021-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8796 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not use getpass(3)andersen2004-05-011-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8793 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Steven Scholz writes:andersen2004-04-141-0/+2
| | | | | | | | | | | | | | | Hi there, the "-h" option of httpd is not described in the usage text. Please find the attached patch. Thanks. Steven git-svn-id: svn://busybox.net/trunk/busybox@8761 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix incorrect ipcalc usage textandersen2004-04-131-16/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8753 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix several problems with start-stop-daemon, add -m supportandersen2004-04-131-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Rob Landley to fix sed documentation.andersen2004-04-121-4/+8
| | | | | | | | The -i option was not documented, and in genereal the formatting was a bit ugly. git-svn-id: svn://busybox.net/trunk/busybox@8736 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Document insmod -oandersen2004-04-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8723 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more doc updatesandersen2004-04-061-69/+77
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8710 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more doc cleanups. Many thanks to Robert P. J. Day forandersen2004-04-061-41/+46
| | | | | | | kindly reviewing the existing docs and providing helpful feedback. git-svn-id: svn://busybox.net/trunk/busybox@8709 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Seem not many people are using 'ipaddr' since it hasandersen2004-04-061-1/+1
| | | | | | | never worked.... Most people use 'ip addr foo' I suppose. git-svn-id: svn://busybox.net/trunk/busybox@8708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* yet-more doc updates and cleanupsandersen2004-04-061-103/+106
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8706 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As noted by Martin Schwenke, the example for find was wrongandersen2004-03-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8667 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more doc cleanupsandersen2004-03-271-10/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-153-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update docs for start_stop_daemon to match reality. Updateandersen2004-03-132-26/+28
| | | | | | | the reality a bit to better match debian behavior. git-svn-id: svn://busybox.net/trunk/busybox@8627 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add prototypes for safe_strtol and friendsandersen2004-03-121-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8622 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix awk entry, which was not showing up in BusyBox.txt for some reasonandersen2004-03-121-6/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8621 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In spite of the feature freeze, check in a complete rework of route whichmjn32004-03-102-5/+13
| | | | | | | | | | | fixes some bugs, adds some error checking, and removes _lots_ of bloat. Text size on i386... old new ipv6 5425 3523 no ipv6 3143 2193 git-svn-id: svn://busybox.net/trunk/busybox@8607 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Note that /proc must be mounted for filesystem type autodetectionandersen2004-03-091-1/+2
| | | | | | | | to work. Without /proc mounted, one must explicitly specify the type of every filesystem being mounted. git-svn-id: svn://busybox.net/trunk/busybox@8604 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woops, how did that get in therebug12004-03-061-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8594 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Dowling to fix a ocuple of usage entriesbug12004-02-251-2/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8557 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fernando Silveira writes:andersen2004-02-221-0/+15
| | | | | | | | | | | | | | | | Hi, Well, I made this patch a long time ago (08/2002) because it was a need of a project, but had no time to send it to you. It adds support to `autologin' option of the telnet protocol. It has been used since made with busybox 0.60.3 at production and I had no problems with it. I have ported it to the HEAD revision of the CVS server (20040211) and I hope you enjoy and apply it to the official sources. :) Thanks a lot! git-svn-id: svn://busybox.net/trunk/busybox@8550 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update usage for ftpget and ftpputbug12004-02-221-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8535 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sometimes i get carried away with the use of function pointers, im surebug12004-02-211-1/+0
| | | | | | | it seemed like a good idea at the time. git-svn-id: svn://busybox.net/trunk/busybox@8531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Document missing cp optionsandersen2004-02-201-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8529 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make sure stdlib.h is always included before dmalloc.h to avoid problemsmjn32004-02-052-0/+2
| | | | | | | parsing problems. git-svn-id: svn://busybox.net/trunk/busybox@8412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New applet, seq. No options, just the basics.bug12004-01-272-1/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modify bb_lookup_port to allow the protocol to be specified, allowingbug12004-01-171-1/+1
| | | | | | | /etc/services support for inetd, netcat and tftp. git-svn-id: svn://busybox.net/trunk/busybox@8307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Tito, reduce size of deallocvt, also make the usage messagebug12004-01-151-1/+6
| | | | | | | | clearer (from N to [N]) and indirectly (through bb_xgetlarg) adds support for -h ;-) git-svn-id: svn://busybox.net/trunk/busybox@8291 69ca8d6d-28ef-0310-b511-8ec308f3f277