History log of /src/usr.bin/chpass/chpass.c |
Revision | | Date | Author | Comments |
1.35 |
| 31-Aug-2011 |
plunky | NULL does not need a cast
|
1.34 |
| 29-Aug-2011 |
joerg | static + __dead
|
1.33 |
| 21-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.32 |
| 21-Feb-2007 |
hubertf | branches: 1.32.12; pw_lock(3): ``You should finish writing to and close the file descriptor returned by pw_lock() before calling pw_mkdb().'' While there, also close another open file descriptor that's no longer used.
Patch from Slava Semushin <slava.semushin@gmail.com>, tested by me.
|
1.31 |
| 07-Oct-2006 |
elad | PR/29722: Andreas Kling: chpass temporary files in /etc not always unlinked
We had a (long) discussion about this in #NetBSD-code and the consensus was that /tmp should always be sticky (+t), and as such it is safe to create the temporary files for chpass(1) in there. We added a check to guarantee this (and bail out otherwise) and now temporary files are created in /tmp, not filling up /etc.
Thanks to rivo nurges et al.
|
1.30 |
| 02-Jun-2005 |
lukem | Ensure yflag is initialized before trying to use it. Detected with gcc -Wuninitialized.
|
1.29 |
| 17-Feb-2005 |
xtraeme | branches: 1.29.2; Kill __P(), use ANSI function declarations.
|
1.28 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.27 |
| 16-Nov-2002 |
itojun | error handling on strdup failure
|
1.26 |
| 16-Aug-2002 |
enami | Make this compiles again when compiled without YP. From Makoto Fujiwara in private mail.
|
1.25 |
| 08-Aug-2002 |
enami | Don't leave temporary file on abnormal exit (like, interrupted by user). Minor cosmetic chagnes while I'm here.
|
1.24 |
| 07-Aug-2002 |
soren | Mentions options -l and -y as in passwd.1. PR misc/14574 from Hiramatsu Yoshifumi.
|
1.23 |
| 11-Jun-2002 |
itojun | err/errx/warn/warnx do not need \n at the end
|
1.22 |
| 18-Aug-2001 |
ad | Update for pw_mkdb() change: restrict updates to one user's records and/or the secure database where appropriate.
|
1.21 |
| 13-Feb-2001 |
cgd | progname not used here, so don't extern it
|
1.20 |
| 27-Oct-2000 |
phil | getpwuid() and getpwnam() both support YP maps, insecure and secure. Remove local ypgetpw{uid,nam} which don't support secure maps. (Using chpass/chfn with secure maps and these local functions turns off users by putting * in password entry.)
|
1.19 |
| 07-Jul-2000 |
itojun | errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
|
1.18 |
| 08-Feb-1999 |
mjl | branches: 1.18.2; 1.18.10; Fix for PR 5507 and 6686, using mostly patch by Rick Byers.
|
1.17 |
| 19-Dec-1998 |
thorpej | Set close-on-exec on all opened files. Partially from OpenBSD.
|
1.16 |
| 19-Dec-1998 |
thorpej | Better error message if opening the temp file fails.
|
1.15 |
| 05-Jul-1998 |
mrg | KNF
|
1.14 |
| 18-Oct-1997 |
lukem | WARNSify, fix .Nm usage, bzero -> memset
|
1.13 |
| 25-Jul-1997 |
mikel | initialize variables for gcc -Wall (marked XXX) compare getopt() result to -1, not EOF
|
1.12 |
| 24-Jul-1997 |
phil | Changes to close PR3807. (Different than in PR.) -- don't lock passwd until data is collected. -- save a copy of original pw data for pw_copy checking -- Try several times to lock passwd
|
1.11 |
| 05-Jan-1997 |
cjs | PR 3081: segfault due to reversed test. Fix from Todd Kover <kovert@omniscient.com>.
|
1.10 |
| 26-Nov-1996 |
thorpej | Fix a semantic problem reported by Chuck Cranor:
If a user wishes to change a password on a system running YP, and the master server is not running rpc.yppasswdd, chpass(1) would fail, even if the user had a local entry. Fix this by checking for local entry if master is not running rpc.yppasswd iff we defaulted to using YP (not invoked with "-y").
XXX Unlike the similar change to passwd(1), this one duplicates some XXX code (makes an attempt to contact rpc.yppasswdd early). This is XXX a side-effect of the structure of this program. chpass(1) could XXX use a re-write.
|
1.9 |
| 09-Aug-1996 |
thorpej | Slight semantics change: ALWAYS use YP if the system is bound to a YP server. This is required if the passwd database is to stay in sync if this program is run on the YP server. Note, local passwd database operations can still be performed by passing the -l flag.
|
1.8 |
| 15-May-1996 |
jtc | Updated to use new password file functions in libutil. From Greg Hudson <ghudson@MIT.EDU>.
|
1.7 |
| 28-Jul-1995 |
phil | Improvements to YP support from Jason Downs.
|
1.6 |
| 26-Jun-1995 |
jtc | Remove unnecessary sys/signal.h header
|
1.5 |
| 26-Mar-1995 |
glass | merged with 4.4Lite
|
1.4 |
| 17-Aug-1994 |
deraadt | branches: 1.4.2; tabs
|
1.3 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.2 |
| 11-Jun-1993 |
brezak | Add YP support.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 26-Mar-1995 |
glass | Import from 4.4Lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.4.2.2 |
| 17-Aug-1994 |
deraadt | tabs
|
1.4.2.1 |
| 17-Aug-1994 |
deraadt | file chpass.c was added on branch netbsd-1-0 on 1994-08-17 19:54:40 +0000
|
1.18.10.3 |
| 15-Nov-2000 |
tv | Revert pullup of 1.20 [releng]. This causes other issues that need to be addressed as part of a more complete change in 1.5.1.
|
1.18.10.2 |
| 30-Oct-2000 |
tv | Pullup 1.20 [phil]: getpwuid() and getpwnam() both support YP maps, insecure and secure. Remove local ypgetpw{uid,nam} which don't support secure maps. (Using chpass/chfn with secure maps and these local functions turns off users by putting * in password entry.)
|
1.18.10.1 |
| 28-Jul-2000 |
itojun | pullup (approved by releng-1-5) printf-like format pedant. do not pass string variable alone. use "%s". from openbsd.
/cvsroot/basesrc/usr.bin/biff/biff.c 1.6 -> 1.7 /cvsroot/basesrc/usr.bin/chpass/chpass.c 1.18 -> 1.19 /cvsroot/basesrc/usr.bin/finger/net.c 1.13 -> 1.14 /cvsroot/basesrc/usr.bin/finger/util.c 1.15 -> 1.16 /cvsroot/basesrc/usr.bin/hexdump/display.c 1.8 -> 1.9 /cvsroot/basesrc/usr.bin/ktrace/ktrace.c 1.18 -> 1.19 /cvsroot/basesrc/usr.bin/mail/lex.c 1.14 -> 1.15 /cvsroot/basesrc/usr.bin/modstat/modstat.c 1.14 -> 1.15 /cvsroot/basesrc/usr.bin/tcopy/tcopy.c 1.9 -> 1.10 /cvsroot/basesrc/usr.bin/tn3270/ascii/map3270.c 1.7 -> 1.8 /cvsroot/basesrc/usr.bin/tn3270/tools/mkmake/mkmake.y 1.7 -> 1.8 /cvsroot/basesrc/usr.bin/vmstat/dkstats.c 1.8 -> 1.9
|
1.18.2.1 |
| 20-Oct-2000 |
he | Apply patch (requested by phil): Change password database information without turning off the user when using secure YP maps.
|
1.29.2.1 |
| 15-Jun-2005 |
snj | Pull up revision 1.30 (requested by lukem in ticket #405): Ensure yflag is initialized before trying to use it. Detected with gcc -Wuninitialized.
|
1.32.12.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|