aboutsummaryrefslogtreecommitdiff
path: root/libpwdgrp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-041-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: comment out unused dataDenys Vlasenko2010-04-021-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: comment out more unused functionsDenys Vlasenko2010-03-311-8/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: comment out functions with UNUSED_SINCE_WE_AVOID_STATIC_BUFSDenys Vlasenko2010-03-311-31/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: style cleanupsDenys Vlasenko2010-03-311-86/+91
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: code style fixes, no real code changesDenys Vlasenko2010-03-311-14/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: can't depend on strlen(line_buff) != 0Denys Vlasenko2010-03-311-40/+42
| | | | | | | function old new delta bb__pgsreader 188 202 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize code size in strtoul callsDenys Vlasenko2009-09-231-9/+9
| | | | | | | | | | | | function old new delta bb_parse_mode 433 431 -2 rtnl_rtntype_a2n 202 198 -4 ParseField 511 498 -13 bb_init_module_24 4730 4675 -55 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-74) Total: -74 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Patches to enable FreeBSD buildDenys Vlasenko2009-07-051-1/+1
| | | | | | | | | platform.h: fix wrong check for endianness, fix lchown aliasing to chown on uclibc. Code seems to not be affected in my testing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove redundant NULL checkDenis Vlasenko2008-09-271-4/+0
|
* libpwdgrp: make it coexist with <pwd.h>, <grp.h> and <shadow.h>.Denis Vlasenko2008-09-261-0/+2
| | | | | | allows to get rid of hacks in libbb.h (extra declaration of setgroups - now it comes from grp.h as intended).
* id: fix "id <user>" case. Requires getgrouplist().Denis Vlasenko2008-09-181-23/+47
| | | | | | | | | | | | function old new delta getgrouplist_internal - 200 +200 id_main 462 539 +77 bb_internal_getgrouplist - 67 +67 bb__parsespent 119 117 -2 bb_internal_initgroups 213 58 -155 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/2 up/down: 344/-157) Total: 187 bytes
* watchdog: add -T optionDenis Vlasenko2008-09-071-4/+1
| | | | | | | | function old new delta watchdog_main 159 219 +60 mdev: support match by major,minor. See bug 4714. +100 bytes.
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-212-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* whitespace fixes, no code changedDenis Vlasenko2008-07-211-2/+2
|
* - first pass to unify/cleanup uid handling (-236b)Bernhard Reutner-Fischer2008-07-211-2/+6
| | | | This needs further love, alot of love.. Tito?
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-081-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xrealloc_vector_helper - 51 +51 create_list 84 99 +15 getopt_main 690 695 +5 passwd_main 1049 1053 +4 get_cached 85 89 +4 msh_main 1377 1380 +3 add_match 42 41 -1 read_lines 720 718 -2 grave 1068 1066 -2 fill_match_lines 143 141 -2 add_to_dirlist 67 65 -2 add_input_file 49 47 -2 act 252 250 -2 fsck_main 2252 2246 -6 man_main 765 757 -8 bb_internal_initgroups 228 220 -8 cut_main 1052 1041 -11 add_edge_to_node 55 43 -12 dpkg_main 3851 3835 -16 ifupdown_main 2202 2178 -24 sort_main 838 812 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/15 up/down: 82/-124) Total: -42 bytes
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-2/+2
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* inetd: use change_identity().Denis Vlasenko2008-03-201-18/+9
| | | | | | | | | | | | | libbb: shrink our internal initgroups(). httpd: remove stray 'else' and 'index_page = "index.html"' function old new delta httpd_main 750 743 -7 inetd_main 2033 2011 -22 bb_internal_initgroups 251 228 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-52) Total: -52 bytes
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-31/+33
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* style fix (stray space before ';')Denis Vlasenko2007-07-211-2/+2
|
* libpwdgrp/pwd_grp.c: allocate local storage on first call, not in bss. -1k bssDenis Vlasenko2007-06-181-27/+96
| | | | | | | | | | | | | | function old new delta get_S - 31 +31 bb_internal_getpwnam 38 44 +6 bb_internal_getgrnam 38 44 +6 bb_internal_getgrgid 38 44 +6 ptr_to_statics - 4 +4 static.resultbuf 88 - -88 static.buffer 1024 - -1024 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 3/0 up/down: 53/-1112) Total: -1059 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* we were basically ignoring CONFIG_USE_BB_PWD_GRP (assuming =y),Denis Vlasenko2007-05-181-1/+3
| | | | fix this
* style fixesDenis Vlasenko2007-04-131-2/+2
|
* Do not fail password check if shadow password does not exist -Denis Vlasenko2007-03-131-4/+16
| | | | | | | | | | | | | | | | | | | | | | fall back to ordinary one Reduced usage of functions returning datain static buffers. (mostly passwd/group/shadow related): function old new delta correct_password 143 193 +50 sulogin_main 490 533 +43 adduser_main 732 774 +42 passwd_main 1875 1915 +40 addgroup_main 330 365 +35 bb_internal_getspnam 38 - -38 bb_internal_fgetpwent 38 - -38 bb_internal_fgetgrent 38 - -38 static.resultbuf 168 88 -80 static.buffer 1872 1104 -768 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 5/2 up/down: 210/-962) Total: -752 bytes
* start_stop_daemon: add -chuid supportDenis Vlasenko2007-02-261-0/+36
|
* fixdep.c: avoit doing memcmp in most casesDenis Vlasenko2006-12-303-48/+74
| | | | | uidgid_get.c: add forgotten copyright notice pwd/grp/shadow: avoid collisions with libc names
* fix build without shadow supportDenis Vlasenko2006-12-281-75/+92
|
* bb_xget[pw/gr]nam were horribly misnamed - fixed.Denis Vlasenko2006-12-281-17/+38
| | | | | | | uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam
* httpd: add -u user[:grp] supportDenis Vlasenko2006-10-052-1/+50
|
* build system overhaulDenis Vlasenko2006-10-055-268/+31
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-022-0/+2
|
* More removal of "#if 0" content."Robert P. J. Day"2006-07-011-13/+0
|
* I broke allbareconfig with half-finished cleanups I'd forgotten weren't done.Rob Landley2006-06-201-3/+1
| | | | | Got both to a decent stopping point. (There's a lot more cleanup to do on ls.c but now is not the time...)
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-4/+4
| | | | that and callers wind up typecasting it back.
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵Mike Frysinger2006-05-131-1/+1
| | | | mailing list
* - include proper headers.Bernhard Reutner-Fischer2006-04-052-2/+4
|
* - revert back to r14406Bernhard Reutner-Fischer2006-03-131-26/+28
|
* - backout using features which are not available with the previous stableBernhard Reutner-Fischer2006-03-091-2/+6
| | | | version of make (3.71.1).
* Typo fixes brought to you by the letters a, l, and Robert P. Day.Rob Landley2006-03-032-5/+5
|
* - use absolute path for top_builddir and top_srcdir.Bernhard Reutner-Fischer2006-03-021-0/+4
| | | | Fixes make trying to include the very same file in an endless loop.
* - fixes parallel builds (make -j)Bernhard Reutner-Fischer2006-03-011-31/+23
| | | | - use less resources for the buildsystem itself
* make the build system puuuuuuuuuuurtyMike Frysinger2006-02-021-5/+3
|
* just whitespaceTim Riker2006-01-251-24/+24
|
* - shared libbusybox.Bernhard Reutner-Fischer2006-01-151-6/+21
| | | | | - IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
* - move GETXXKEY_R_FUNC into an internal helper file to allow for compilingBernhard Reutner-Fischer2005-10-282-46/+154
| | | | with IMA.
* Shaun Jackman pointed out that fgets_unlocked() and friends are gnu extensionsRob Landley2005-10-081-17/+5
| | | | | not in newlib, and also that all the _unlocked variants are kind of pointless in this context.
* use the shorter license headerMike Frysinger2005-09-241-15/+2
|
* use brief license lineMike Frysinger2005-09-241-15/+2
|