aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/chpass
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: minor paragraph fixes.Joel Dahl2014-02-081-2/+0
| | | | Notes: svn path=/head/; revision=261634
* Avoid possible null deref if ypclnt_new returns nullEitan Adler2012-11-151-2/+5
| | | | | | | | | | PR: bin/172979 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=243081
* Remove unnecessary castKevin Lo2012-02-141-2/+2
| | | | Notes: svn path=/head/; revision=231651
* Mark the structure fields as const.Ed Schouten2011-11-062-17/+14
| | | | | | | | This allows us to simply place these strings as constants in the table itself, letting the compiler decide to simply merge duplicate strings. Notes: svn path=/head/; revision=227228
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-112-8/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* mdoc: remove stray andUlrich Spörlein2010-05-111-1/+0
| | | | | | | | Found via: mdocml Reviewed by: brueffer Notes: svn path=/head/; revision=207941
* Restore historical behaviour of only executing chflags on files that exist.Ed Maste2010-05-041-0/+2
| | | | | | | | This eliminates cosmetic errors of the form "chflags: ...: No such file or directory" during an installworld to an empty destination. Notes: svn path=/head/; revision=207613
* Let the afterinstall target ignore failures from running chflags. ThisScott Long2010-03-041-1/+1
| | | | | | | | | | allows it to work over NFS, and puts it back into conformance with other 'schg' utlitilties in the system. Reviewed by: ed Notes: svn path=/head/; revision=204707
* The group field is called `gid', not `group'.Ed Schouten2010-01-141-1/+1
| | | | Notes: svn path=/head/; revision=202282
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Make the chpass Makefile honour NO_FSCHG.Ed Schouten2009-06-151-3/+4
| | | | | | | | | | | | | The chpass Makefile tried to set the fschg flag on the binaries, even if NO_FSCHG was passed to the installworld. This meant that if I installed FreeBSD into a Jail, I couldn't installworld from within the Jail anymore. Now that it listens to NO_FSCHG, we can just make it bail out when it fails, just like PRECIOUSPROG does. Notes: svn path=/head/; revision=194266
* Fix bug introduced in rev 1.23:Dmitry Morozovsky2006-09-251-1/+6
| | | | | | | | | | | pw_equal does not check crypted password field, so one cannot change crypted password keeping other fields intact. Approved by: des MCF after: 3 days Notes: svn path=/head/; revision=162633
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-4/+6
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).Sean Chittenden2005-08-021-0/+1
| | | | Notes: svn path=/head/; revision=148651
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140420
* More NO_NIS cleanup: LINKS and MLINKSAndrey A. Chernov2004-12-291-0/+4
| | | | Notes: svn path=/head/; revision=139396
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.Bjoern A. Zeeb2004-11-131-3/+9
| | | | | | | | | | | | | | If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=137675
* Remove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).Philippe Charnier2004-07-261-2/+1
| | | | Notes: svn path=/head/; revision=132668
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131491
* Typo fix.Marc Fonvieille2004-03-031-1/+1
| | | | | | | | | PR: docs/63677 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> MFC after: 1 week Notes: svn path=/head/; revision=126537
* Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, makePhilippe Charnier2004-01-184-21/+39
| | | | | | | | | | | | | a new function dup_shell() to replace ok_shell() and make it unconditionnally strdup() its result to make the caller's code simplier. Change ok_shell() to just return an integer value suitable for tests (it was used mainly for that purpose). Do not use strdup() in the caller's code but rely on dup_shell() that will do the job for us. PR: bin/2442 Notes: svn path=/head/; revision=124692
* Do not compare unsigned int values with ULONG_MAX. The comparison isAlexander Kabaev2003-07-111-2/+2
| | | | | | | always false on 64bit platforms and GCC 3.3.1 issues warning there. Notes: svn path=/head/; revision=117430
* Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].David E. O'Brien2003-05-032-2/+3
| | | | Notes: svn path=/head/; revision=114594
* Avoid clobbering the gecos field, as we intend to use the original later.Dag-Erling Smørgrav2003-04-091-3/+10
| | | | | | | PR: bin/50563 Notes: svn path=/head/; revision=113304
* Style cleanup.David E. O'Brien2002-12-301-11/+10
| | | | Notes: svn path=/head/; revision=108435
* Make WARNS=5 clean.David E. O'Brien2002-12-302-5/+3
| | | | | | | Tested on: sparc64, Athlon[32] Notes: svn path=/head/; revision=108434
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-5/+5
| | | | Notes: svn path=/head/; revision=108257
* mdoc(7) police: more `The .Nm utility' + markup nit.Ruslan Ermilov2002-12-231-5/+5
| | | | Notes: svn path=/head/; revision=108213
* Move the NOTES section to DESCRIPTION. And correct some documentation whileTom Rhodes2002-12-201-11/+13
| | | | | | | | | | I'm here. PR: 43756 Submitted by: Gary W. Swearingen <swear@attbi.com> Notes: svn path=/head/; revision=108114
* Don't try to dereference a NULL pw pointer. This would happen whenJoerg Wunsch2002-10-291-1/+1
| | | | | | | attempting to use chpass -a. Notes: svn path=/head/; revision=106138
* Consistently use FBSDIDDavid E. O'Brien2002-06-302-3/+3
| | | | Notes: svn path=/head/; revision=99112
* Use libutil and libypclnt for all passwd manipulation and NIS needs.Dag-Erling Smørgrav2002-05-0811-1216/+317
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96201
* Use `The .Nm utility'Philippe Charnier2002-04-191-10/+15
| | | | Notes: svn path=/head/; revision=95083
* Rename a couple of local variables to avoid warnings.Dag-Erling Smørgrav2002-04-061-26/+26
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=93978
* Fix vendor ID.David Malone2002-03-301-2/+4
| | | | | | | | | | | Make usage message match the man page. (Missing -o, -h doesn't depend on -d). PR: 36470 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 1 week Notes: svn path=/head/; revision=93429
* Minor post warns stuff.David Malone2002-03-303-19/+14
| | | | | | | | | | | | 1) Fix up vendor IDs for files I'm touching and put FBSDID in the right place. 2) Cast return value of snprintf to size_t rather than casting sizeof() to an int, 'cos we know snprintf returns a non-genative number. 3) Avoid 'char *blank = "";' by just strduping. This could be bad sometimes, but all these variables usually point at malloced memory so this makes them always point at malloced memory. Notes: svn path=/head/; revision=93423
* Fix warns, ANSIfy, use __FBSDID(), sort headers.Mark Murray2002-03-249-155/+114
| | | | Notes: svn path=/head/; revision=93086
* Fix a style(9) error. Put the vendor version control string back in.Crist J. Clark2002-03-241-0/+1
| | | | | | | I nuked it when I added the $FreeBSD$ tag. Notes: svn path=/head/; revision=93065
* remove __PWarner Losh2002-03-223-20/+21
| | | | Notes: svn path=/head/; revision=92920
* Fix a bug that prevents "00" being used as a valid year. Why bother inCrist J. Clark2002-03-181-1/+1
| | | | | | | | | | | 2002? It is a bug. Might as well close the PR. PR: misc/14511 Submitted by: Mike Pritchard <mpp@mpp.pro-ns.net> MFC after: 3 days Notes: svn path=/head/; revision=92554
* It was possible for an unprivileged user to tie up the passwordCrist J. Clark2002-03-183-25/+64
| | | | | | | | | | | | | | | | | | | information (no one else can vipw(8), chpass(1), or even passwd(1)), either on purpose or by accident, until an administrator manually intervened. Instead, do not lock the master.passwd file while a user is editing his information. But once we go to write the new information, check that the modified user's information has not changed in the password database since we started. Abort the changes if it has. Add a $FreeBSD$ to pw_copy.h. PR: i386/35816 Obtained from: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=92528
* ANSIfy and remove some dead code.Dag-Erling Smørgrav2002-02-061-23/+13
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90298
* Apply the following mechanical transformations in preparation forDag-Erling Smørgrav2002-02-062-9/+9
| | | | | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week Notes: svn path=/head/; revision=90297
* The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacksAlfred Perlstein2002-02-051-5/+19
| | | | | | | | | | | | | | | | were removed and replaced them with clnt_tp_create, now the af_local support is fixed. I also removed the hack how rpcinfo contacted rpcbind, now we can relay on clnt_tp_create create the client-handle for us. Only rpcbind itself needs a hardcoded socket-path. Submitted by: mbr Also add $FreeBSD Notes: svn path=/head/; revision=90256
* Set BINOWN=root explicitly for setuid root binaries.Ruslan Ermilov2001-09-131-0/+1
| | | | | | | | | This is not "useless", as one may have non-default setting for BINOWN in make.conf, and we still want these to be installed setuid root in this case. Notes: svn path=/head/; revision=83391
* Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently addsDima Dorfman2001-09-051-2/+2
| | | | | | | | | | | | COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line. Approved by: bde Notes: svn path=/head/; revision=83112
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+3
| | | | Notes: svn path=/head/; revision=81622
* can not -> cannotSheldon Hearn2001-08-081-1/+1
| | | | Notes: svn path=/head/; revision=81298
* Prevent chpass(1) from writing -1 in the UID or GID fieldsMike Barcroft2001-07-263-8/+13
| | | | | | | | | | | | in the password file by properly casting integers. PR: 27757 Reviewed by: des Approved by: des MFC after: 4 days Notes: svn path=/head/; revision=80424
* Remove whitespace at EOL.Dima Dorfman2001-07-151-3/+3
| | | | Notes: svn path=/head/; revision=79755