summaryrefslogtreecommitdiff
path: root/loginutils/passwd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix for uclibc-without-shadow.h compilationDenis Vlasenko2006-12-301-1/+3
|
* passwd: add option to check passwords for weaknessDenis Vlasenko2006-12-191-1/+2
|
* passwd: fix indentationDenis Vlasenko2006-12-121-3/+2
|
* passwd: added commentDenis Vlasenko2006-12-121-1/+6
|
* passwd: shrink by ~10 bytes, use PRNG instead of usleep.Denis Vlasenko2006-12-121-17/+10
|
* passwd: made smaller by ~130 bytes. size can go negativeDenis Vlasenko2006-12-011-56/+50
| | | | if current trend will continue ;)
* passwd: micro-optimizationDenis Vlasenko2006-11-301-4/+4
|
* passwd: small size optimization. salt generation improvedDenis Vlasenko2006-11-301-22/+28
| | | | (really generated different salts even if called back-to-back).
* passwd: rework:Denis Vlasenko2006-11-301-283/+249
| | | | | | | | | * do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-3/+3
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-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.
* several fixes from openWRT projectDenis Vlasenko2006-09-261-1/+1
|
* passwd: getopt_ulflags'isationDenis Vlasenko2006-09-231-61/+52
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-5/+5
| | | | | automatically by function itself.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-14/+2
| | | | | | | | | | 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.)
* Convert setuid/setgid users to xsetuid/xsetgid.Rob Landley2006-07-161-4/+1
|
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-0/+4
|
* Patch from Tito to remove pwd_to_spwd (which we don't actually need), withRob Landley2006-07-111-14/+7
| | | | some #ifdef removal from me.
* - passwd doesnt use salt with md5 passwords; bug #604 thanks tavisoNed Ludd2006-04-211-3/+11
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* - bzero -> memsetBernhard Reutner-Fischer2006-01-311-16/+17
| | | | | | | | | | | | | | | text data bss dec hex filename 1652855 14444 1215616 2882915 2bfd63 busybox.oorig.gcc-3.3 1652823 14444 1215616 2882883 2bfd43 busybox.gcc-3.3 1603655 14412 1215552 2833619 2b3cd3 busybox.oorig.gcc-3.4 1603655 14412 1215552 2833619 2b3cd3 busybox.gcc-3.4 1609755 14508 1215744 2840007 2b55c7 busybox.oorig.gcc-4.0 1609755 14508 1215744 2840007 2b55c7 busybox.gcc-4.0 1590495 13516 1215392 2819403 2b054b busybox.oorig.gcc-4.1-HEAD 1590495 13516 1215392 2819403 2b054b busybox.gcc-4.1-HEAD 1589079 13036 1213248 2815363 2af583 busybox.oorig.gcc-4.2-HEAD 1589079 13036 1213248 2815363 2af583 busybox.gcc-4.2-HEAD
* declare const for funMike Frysinger2006-01-081-1/+1
|
* patch from tito: consolidate delay functions as bb_do_delay()Rob Landley2006-01-061-7/+1
|
* - rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer2005-09-201-1/+1
| | | | | | | | my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-2/+2
| | | | which were otherwise cluttering the global namespace.
* Only write to shadow file is shadow passwords are enabled. Patch by magicfox ↵Glenn L McGrath2004-09-151-5/+4
| | | | modified by myself to retain check for shadow file access.
* Tito writes:Eric Andersen2004-09-021-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.......).
* Do not use getpass(3)Eric Andersen2004-05-011-3/+3
|
* Set the default password to md5, patch by Joshua JacksonGlenn L McGrath2003-09-041-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-13/+13
|
* Patch from Joshua Jackson, make md5 the default hash algorithmGlenn L McGrath2003-02-081-3/+3
|
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)Robert Griebl2002-07-191-1/+1
| | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
* Fix text alignment, thanks to Sander Klein <s.klein@quicknet.nl>Eric Andersen2002-07-031-6/+4
|
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-0/+408
-Erik