summaryrefslogtreecommitdiffstats
path: root/chpass
Commit message (Collapse)AuthorAgeFilesLines
* Fix PREFIX logicCameron Katri2022-01-021-9/+10
|
* PREFIX stuffCameron Katri2021-08-281-3/+3
|
* Make all calls to install POSIXCameron Katri2021-08-281-3/+4
|
* usr.bin/chpass: Correct manpage regarding path to temp filesCeri Davies2021-05-261-3/+3
| | | | Approved by: blackend (mentor)
* Assume manpages are compressed with zstCameron Katri2021-05-031-2/+2
|
* Recommit everything, add chpass, improve history (except for a few files ↵Cameron Katri2021-05-022-88/+61
| | | | that git-filter-repo dislikes for some reason [_secure_path.c and login_cap.h])
* Partially revert r367756 (chpass(1) synopsis changes)Mateusz Piotrowski2020-11-171-1/+7
| | | | | | | | | | | | | | Let's have two entries in the synopsis: - chpass now lists options which can be used for non-NIS-specific functionalities. - ypchpass additionally lists the NIS-specific flags. Technically, it is an artificial distinction, as chpass and ypchpass behave identically. Nevertheless, it might help navigating the synopsis section. Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27251
* Add an example for the -s flagMateusz Piotrowski2020-11-171-0/+6
| | | | MFC after: 2 weeks
* Improve readability of the lists of optionsMateusz Piotrowski2020-11-171-20/+20
| | | | | | | | - Sort options alphabetically - Add missing arguments (e.g., "list" to -a) - Adjust the width of Bl MFC after: 1 week
* Clean up the synopsis section & fix mandoc warningsMateusz Piotrowski2020-11-171-12/+6
| | | | | | | | The synopsis section had two very similar entries. The flags documented by the first one were a strict subset of the second one. Let's just keep only the second entry for simplicity. MFC after: 1 week
* Fix i386 build of chpass after r363992Alex Richardson2020-08-081-2/+2
| | | | | | | | | | | My change to allow bootstrapping pwd_mkdb (r363992) resulted in i386 build failures because the bootstrap header was being included in non-bootstrap chpass. Dropping the no longer required pwd_mkdb include path from chpass fixes the build, but to be certain that the failure doesn't get re-introduced, I've also moved the bootstrap pwd.h into a subdirectory so that adding -I${SRCTOP}/usr.sbin/pwd_mkdb doesn't pull it in. Reported by: mjg
* chpass: reject change/expiry dates beyond y2106Ed Maste2018-04-191-0/+12
| | | | | | | | | | | | | | The pwd.db and spwd.db files store the change and expire dates as unsigned 32-bit ints, which overflow in 2106. Reject larger values for now, until the introduction of a v5 password database. i386 has 32-bit time_t and so dates beyond y2038 are already rejected by mktime. PR: 227589 Reviewed by: lidl MFC after: 1 week Sponsored by: The FreeBSD Foundation
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-185-1/+568
| | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133
* chpass(1): Check crypt(3) return and handle error appropriatelyConrad Meyer2017-10-041-3/+3
| | | | | | | | This change is spiritually similar to the earlier r231994. PR: 222756 Submitted by: Lubos Boucek <bouceklubos AT gmail.com> Obtained from: DragonflyBSD 2020c8fec4168a5020f984a093224fade3074b25
* Adopt SRCTOP in usr.binWarner Losh2017-03-121-2/+2
| | | | | | | | | Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence on: arch@ (twice)
* Convert absolute links to relative links.Rodney W. Grimes2017-03-071-5/+5
| | | | | | | Style.Makefile(9) has been ignored to produce minimal diffs. Approved by: grehan (mentor) MFC after: 1 week
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
* Restore the 'beforeinstall' for chpass(1), so files with theGlen Barber2016-01-281-0/+7
| | | | | | | | | | | schg flag are handled before being replaced by a symbolic link. Fix passwd(1)/yppasswd(1) schg issue similarly to chpass(1). Note: These are likely temporary fixes while identifying any remaining files that are not marked as 'flags=schg' via mtree(8). Sponsored by: The FreeBSD Foundation
* Ensure mtree(8) recognizes chpass(1) is schg.Glen Barber2016-01-281-17/+6
| | | | | | | Convert hard links to symbolic links, and remove the 'beforeinstall' and 'afterinstall' chflags(8) execution. Sponsored by: The FreeBSD Foundation
* Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-4/+2
| | | | Reduce overlinking
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-0/+51
| | | | from the latter.
* mdoc: minor paragraph fixes.Joel Dahl2014-02-081-0/+485
|
* Avoid possible null deref if ypclnt_new returns nullEitan Adler2012-11-151-0/+305
| | | | | | | PR: bin/172979 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days
* Remove unnecessary castKevin Lo2012-02-141-0/+182
|
* Mark the structure fields as const.Ed Schouten2011-11-062-0/+141
| | | | | This allows us to simply place these strings as constants in the table itself, letting the compiler decide to simply merge duplicate strings.
* Create the altix project branch. The altix project will add supportMarcel Moolenaar2010-03-108-1730/+0
| | | | | | | for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
* 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
* The group field is called `gid', not `group'.Ed Schouten2010-01-141-1/+1
|
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* 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.
* 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
* 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)
* Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).Sean Chittenden2005-08-021-0/+1
|
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
|
* More NO_NIS cleanup: LINKS and MLINKSAndrey A. Chernov2004-12-291-0/+4
|
* 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
* Remove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).Philippe Charnier2004-07-261-2/+1
|
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
|
* 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
* 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
* 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.
* Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].David E. O'Brien2003-05-032-2/+3
|
* Avoid clobbering the gecos field, as we intend to use the original later.Dag-Erling Smørgrav2003-04-091-3/+10
| | | | PR: bin/50563
* Style cleanup.David E. O'Brien2002-12-301-11/+10
|
* Make WARNS=5 clean.David E. O'Brien2002-12-302-5/+3
| | | | Tested on: sparc64, Athlon[32]
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-5/+5
|
* mdoc(7) police: more `The .Nm utility' + markup nit.Ruslan Ermilov2002-12-231-5/+5
|
* 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.