summaryrefslogtreecommitdiff
path: root/loginutils/deluser.c
Commit message (Collapse)AuthorAgeFilesLines
* loginutils/*: convert to new-style "one file" appletsDenys Vlasenko2015-10-191-1/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* deluser: also remove user from /etc/groupDenys Vlasenko2015-03-121-6/+12
| | | | | | | | function old new delta update_passwd 1270 1470 +200 deluser_main 310 332 +22 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libpwdgrp: use getpwent() instead of getpwent_r()Denys Vlasenko2015-02-071-5/+4
| | | | | | | | | | | | | | | | | function old new delta massage_data_for_non_r_func - 90 +90 bb_internal_getpwent - 69 +69 getXXnam_r 94 162 +68 fill_bounds 131 128 -3 deluser_main 355 310 -45 complete_username 123 78 -45 getXXnam 163 90 -73 massage_data_for_r_func 103 - -103 bb_internal_getpwent_r 121 - -121 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 1/5 up/down: 227/-407) Total: -163 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* deluser: implement --remove-homeDenys Vlasenko2015-02-051-2/+20
| | | | | | | | | | function old new delta deluser_main 308 355 +47 packed_usage 30149 30156 +7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 54/0) Total: 54 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c ↵Pere Orga2011-04-031-0/+12
| | | | | | | editors/*.c loginutils/*.c mailutils/*.c Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* deluser: do not warn spuriously when deleting group by deluserTito Ragusa2010-11-081-6/+14
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* delgroup: correct the check for users who still use the groupDenys Vlasenko2010-11-071-12/+12
| | | | | Signed-off-by: Tito <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-11-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* deluser: 2nd attempt at deluser/delgroup size reduction and improvementsTito Ragusa2010-11-061-29/+70
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* deluser: use the same licensing template in the header as other files doDenys Vlasenko2010-09-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* deluser: make it simpler, fix inability to delete user from groupHarald Becker2010-09-221-28/+26
| | | | | | | Also makes menuconfig order more sensible Signed-off-by: Harald Becker <ralda@gmx.de> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: unify concurrent-safe update of /etc/{passwd,group,[g]shadow}Denis Vlasenko2009-04-141-101/+32
| | | | | | | | | | | | | | | | | | | | | | | by Tito (farmatito AT tiscali.it) function old new delta update_passwd 743 1171 +428 bb_perror_nomsg - 9 +9 find_main 436 444 +8 passwd_main 1023 1027 +4 nameval 202 206 +4 chpasswd_main 315 319 +4 bb__parsespent 119 117 -2 adduser_main 654 650 -4 addgroup_main 345 341 -4 sv_main 1228 1222 -6 deluser_main 173 160 -13 bb_internal_putpwent 69 - -69 add_user_to_group 231 - -231 del_line_matching 460 31 -429 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 5/6 up/down: 457/-758) Total: -301 bytes
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-1/+1
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* whitespace fixesDenis Vlasenko2007-05-301-4/+4
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* deluser: add optional support for removing users from groupsDenis Vlasenko2007-04-151-53/+95
| | | | (by Tito <farmatito@tiscali.it>)
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* - sed -i -e "/\$Id:/d;"Bernhard Reutner-Fischer2007-01-221-1/+0
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-1/+1
|
* deluser: the same code, but a bit less obfuscated.Denis Vlasenko2006-11-271-15/+16
|
* deluser: size reduction by 60 bytes.Denis Vlasenko2006-11-271-62/+48
| | | | patch from Tito <farmatito@tiscali.it>
* rename functions to more understandable namesDenis Vlasenko2006-10-261-2/+2
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-1/+1
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-1/+1
|
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-6/+1
| | | | Erik or I are primary copyright holders on.
* Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley2006-09-121-1/+2
|
* use strchr() not index()Mike Frysinger2006-04-161-1/+1
|
* Patch from Tito to unify deluser and delgroup, and generally shrink code.Rob Landley2006-04-101-37/+69
|
* decouple delgroup and deluserEric Andersen2003-07-141-119/+8
|
* Major coreutils update.Manuel Novoa III2003-03-191-19/+19
|
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-16/+12
| | | | -Erik
* Bigger patch for (partial) tinylogin integrationRobert Griebl2002-06-041-0/+183
- Made a new dir loginutils - Moved all applets from pwd_grp to loginutils - Added new applets su.c login.c to loginutils - Made a new dir libpwdgrp - Moved everything from pwd_grp/libpwd_grp there - Added shadow.c to libpwdgrp - Removed dir pwd_grp - Added usage strings for login and su to usage.h - Changed main Makefile to reflect the dir rearrangements [Parts of this patch may overlap with my other two patches]