aboutsummaryrefslogtreecommitdiff
path: root/loginutils/addgroup.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesvda2007-05-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* usage.c: remove reference to busybox.hvda2007-05-261-1/+1
| | | | | | | | *: s/include "busybox.h"/include "libbb.h" git-svn-id: svn://busybox.net/trunk/busybox@18696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - clean up addgroup, fix adding users to existing groups and make it ↵aldot2007-04-051-41/+102
| | | | | | optional (Tito) git-svn-id: svn://busybox.net/trunk/busybox@18335 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not fail password check if shadow password does not exist -vda2007-03-131-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@18085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+1
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* attempt to regularize atoi mess.vda2006-10-081-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-10-031-2/+2
| | | | | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit. git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupvda2006-09-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-8/+3
| | | | | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite/shrink by tito.landley2006-04-041-85/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14747 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from tito to add argument checking.bug12004-09-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch89 from vodz:andersen2003-06-201-17/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@6939 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-12/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix addgroup so it actually worksandersen2003-01-091-9/+19
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@6302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use const group_filetimr2002-12-131-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6210 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach addgroup to add user names to groupsandersen2002-12-121-4/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6192 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Marcel Hamer to fix addgroup argument parsingandersen2002-11-141-16/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5924 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix silly typo. addgroup was using /etc/shadow for /etc/gshadow.mjn32002-08-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5163 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed two compiler warningssandman2002-07-211-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub pwd.h and grp.h handling so we don't have to play anyandersen2002-07-031-3/+3
| | | | | | | | silly games. -Erik git-svn-id: svn://busybox.net/trunk/busybox@5011 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Port over the last of the tinylogin appletsandersen2002-06-231-6/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@4961 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bigger patch for (partial) tinylogin integrationsandman2002-06-041-0/+168
- 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] git-svn-id: svn://busybox.net/trunk/busybox@4857 69ca8d6d-28ef-0310-b511-8ec308f3f277