summaryrefslogtreecommitdiffstats
path: root/chpass
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Don't try to dereference a NULL pw pointer. This would happen whenJoerg Wunsch2002-10-291-1/+1
| | | | attempting to use chpass -a.
* Consistently use FBSDIDDavid E. O'Brien2002-06-302-3/+3
|
* Use libutil and libypclnt for all passwd manipulation and NIS needs.Dag-Erling Smørgrav2002-05-0811-1216/+317
| | | | Sponsored by: DARPA, NAI Labs
* Use `The .Nm utility'Philippe Charnier2002-04-191-10/+15
|
* Rename a couple of local variables to avoid warnings.Dag-Erling Smørgrav2002-04-061-26/+26
| | | | Sponsored by: DARPA, NAI Labs
* 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
* 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.
* Fix warns, ANSIfy, use __FBSDID(), sort headers.Mark Murray2002-03-249-155/+114
|
* 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.
* remove __PWarner Losh2002-03-223-20/+21
|
* 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
* 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
* ANSIfy and remove some dead code.Dag-Erling Smørgrav2002-02-061-23/+13
| | | | Sponsored by: DARPA, NAI Labs
* 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
* 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
* 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.
* 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
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+3
|
* can not -> cannotSheldon Hearn2001-08-081-1/+1
|
* 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
* Remove whitespace at EOL.Dima Dorfman2001-07-151-3/+3
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
|
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
|
* Use correct macro for path nameAlexey Zelkin2000-11-221-1/+1
| | | | PR: docs/13218
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-5/+5
|
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-063-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* Use an MD5 checksum to test for file changes; the previous methodSheldon Hearn2000-04-122-3/+10
| | | | | | | | | of using file mtimes could result in chpasss(1) erroneously detecting that no changes were made for non-interactive edits. PR: 4238 Reported by: Jens Schweikhardt <schweikh@noc.dfn.de> Submitted by: Daniel Hagan <dhagan@cs.vt.edu>
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-021-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-10/+20
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Extra sanity checks in information from file edited by user. ThisWarner Losh1999-12-211-16/+16
| | | | | | | precludes using chfn, et al, to generate a divot in /etc. Submitted by: Lukasz Luzar Forgotten about for months by: imp
* Revert the libcrypt/libmd stuff back to how it was. This should not havePeter Wemm1999-12-181-2/+2
| | | | | | | | happened as it was working around problems elsewhere (ie: binutils/ld not doing the right thing according to the ELF design). libcrypt has been adjusted to not need the runtime -lmd. It's still not quite right (ld is supposed to work damnit) but at least it doesn't impact all the users of libcrypt in Marcel's cross-build model.
* Document -e flag.Alexey Zelkin1999-12-171-0/+14
| | | | | PR: docs/14936 Submitted by: Stephen J. Roznowski <sjr@home.com>
* Add libmd (or move it after libcrypt). We don't want the linker to beMarcel Moolenaar1999-12-161-2/+3
| | | | | smart because it will definitely get it wrong. This popped up during cross-linking.
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS inSheldon Hearn1999-12-021-0/+6
| | | | | | | | | | | the environment. This allows big ID warnings to be suppressed for vipw and chpass as well. Since the environment variable test is only performed for callers of pw_scan() that do not set pw_big_ids_warning, the test can still be overriden. Currently, chpass and pwd_mkdb are the only users of pw_scan() and neither of them overrides the environment variable test.
* mdoc(7)'fyAlexey Zelkin1999-11-181-33/+40
| | | | Mostly submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
* mdoc(7)'fyAlexey Zelkin1999-10-301-12/+20
|
* fix a serious bug where, on alpha, due to a an int/long type mismatch,Andrew Gallatin1999-10-201-1/+1
| | | | | the uid arg to use_yp() was getting clobbered by the call to my_yp_match(). This led to a problem where a NIS user could edit root's passwd information.
* Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional andPeter Wemm1999-09-062-3/+1
| | | | we have enough pseudo-options already.
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
|
* Fix a bunch of broken cross-referencesChris Costello1999-08-181-2/+2
|
* Allow comments and blank lines as advertised in passwd(5).Sheldon Hearn1999-07-292-1/+12
| | | | | PR: 12828 Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>
* More egcs warning fixes:Warner Losh1999-04-252-3/+4
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
* Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().Bill Paul1999-03-011-1/+17
| | | | | | | | | | | Instead, treat the inability to retrieve a record from the server as a match failure and let things take its course. Part of the problem here is that NIS _is_ turned on, however the master server is actually not an NIS server: it's an NIS+ server. And the client is bound to an NIS+ replica server that's running in YP compat mode. The code which tries to figure out of the user is local or NIS gets confused by this.
* Change the prompt for the office location field from "Location:"Guy Helmer1999-02-233-8/+13
| | | | | | | | | | | | | | to "Office Location:" to disambiguate what is expected. Add a note to the man page to indicate that the office location and office phone fields are concatenated and printed with the heading "Office:" by finger(1). Swap the order of the home and office phone fields in the man page to match the order of the fields in the editor. If any programs interact with chpass(1) and expect "Location:" instead of "Office Location:" as the prompt, either this change will have to be reverted or the other programs will have to be changed. PR: docs/7533
* Ignore errors from chflags. This makes it possible to make installworldDag-Erling Smørgrav1999-02-141-2/+2
| | | | with DESTDIR set to an NFS-mounted file system.
* Allow two digit years 1969-2068Daniel O'Callaghan1999-01-181-3/+6
|
* Fixed disordering of cross references in previous commit.Bruce Evans1998-12-131-3/+3
|
* Add reference to login.conf(5)Matthew Dillon1998-12-131-2/+3
|
* PR: docs/9045Matthew Dillon1998-12-131-27/+31
| | | | | | Update chpass(1) manual page. Change the definition of the class field and also reorganize the field list to match that of the /etc/master.passwd file, to avoid confusion.