aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/vipw
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
|/ | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* Restore message in man page on VFS timestamp precision.Ed Schouten2012-02-141-1/+11
| | | | | | | Requested by: bde, jhb Notes: svn path=/head/; revision=231648
* Correct date. It seems to be 2012.Ed Schouten2012-02-101-1/+1
| | | | Notes: svn path=/head/; revision=231385
* Detect file modification properly by using tv_nsec.Ed Schouten2012-02-101-8/+1
| | | | | | | | | | POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. MFC after: 2 weeks Notes: svn path=/head/; revision=231383
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* s/insure/ensure/ in previous commit. My dictionary and m-w.com say theyBrooks Davis2005-10-281-1/+1
| | | | | | | | | | are synonymous, but ensure seems slightly closer and does not have the connotation of buying insurance. Reported by: Jason McIntyre <jmc at kerhand dot co dot uk> Notes: svn path=/head/; revision=151829
* Mention the possibility of non-interactive scripts for EDITOR and add aBrooks Davis2005-10-201-0/+9
| | | | | | | | BUGS section mentioning the requirement that such scripts run "sleep 1" or equivalent to work reliably. Notes: svn path=/head/; revision=151523
* Cross-reference pw(8) into chpass(1), passwd(1), and vipw(8).Sean Chittenden2005-08-021-0/+1
| | | | Notes: svn path=/head/; revision=148651
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-072-8/+0
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131500
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114601
* style.Makefile(5)David E. O'Brien2003-04-041-1/+3
| | | | Notes: svn path=/head/; revision=113091
* Don't use NULL when we really mean 0 for call to pw_edit.Warner Losh2002-08-211-1/+1
| | | | Notes: svn path=/head/; revision=102234
* The .Nm utilityPhilippe Charnier2002-07-141-5/+7
| | | | Notes: svn path=/head/; revision=99968
* Use libutil and libypclnt for all passwd manipulation and NIS needs.Dag-Erling Smørgrav2002-05-084-353/+47
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96201
* Make mppath and masterpasswd pointers instead of arrays, and initializeDag-Erling Smørgrav2002-04-171-2/+4
| | | | | | | | | | | | them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.) Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=94897
* Remove bogus reference to _use_yp.Dag-Erling Smørgrav2002-04-151-9/+1
| | | | Notes: svn path=/head/; revision=94776
* ANSIfy and constify.Dag-Erling Smørgrav2002-02-054-33/+31
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90233
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-1/+1
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79537
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-3/+3
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Don't pass NULL to the %s format.Dima Dorfman2001-04-221-2/+6
| | | | | | | Reviewed by: kris Notes: svn path=/head/; revision=75821
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+1
| | | | Notes: svn path=/head/; revision=74532
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68965
* Don't call warn() without a format string.Kris Kennaway2000-07-121-1/+1
| | | | Notes: svn path=/head/; revision=62988
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57673
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS inSheldon Hearn1999-12-021-1/+4
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=54034
* Do not rely on malloc() to zero-fill allocated memory, since it isSheldon Hearn1999-10-251-2/+3
| | | | | | | | | | | not documented as doing so. This fixes a potential segmentation violation. PR: 14465 Reported by: Tony Finch <fanf@demon.net> Notes: svn path=/head/; revision=52483
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50479
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48791
* Move call to umask(0) back into pw_util(), because the latterPierre Beyssac1999-06-292-4/+5
| | | | | | | function is also used by chpass(1) and passwd(1). Notes: svn path=/head/; revision=48328
* Force umask to 077 (instead of 000) during the edit phase, to getPierre Beyssac1999-06-262-5/+6
| | | | | | | | | | | | | secure permissions in case the user attempts to save something to a file of his own. Move umask stuff out of pw_init() into main() for better visibility of overall umask tweaking logic. PR: misc/11797 Notes: svn path=/head/; revision=48241
* Report the correct master.passwd path on failure when the -d option isSheldon Hearn1999-06-261-2/+2
| | | | | | | used. Notes: svn path=/head/; revision=48236
* Add -d option to vipw(8) to allow selection of an alternative directorySheldon Hearn1999-06-263-11/+43
| | | | | | | | | | for the password files. PR: 2703 Submitted by: jmg Notes: svn path=/head/; revision=48232
* oops. Fix indentation of the 'for' loop I just added.Matthew Dillon1998-12-131-18/+18
| | | | Notes: svn path=/head/; revision=41711
* Handle the race condition where vipw may lock a password file which hasMatthew Dillon1998-12-131-6/+22
| | | | | | | | just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence. Notes: svn path=/head/; revision=41710
* Since vfork() was changed to fork(), we have to pass errno back from theDag-Erling Smørgrav1998-10-201-3/+6
| | | | | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu> Notes: svn path=/head/; revision=40538
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() orDag-Erling Smørgrav1998-10-131-3/+3
| | | | | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde Notes: svn path=/head/; revision=40301
* Statisize usage().Philippe Charnier1997-10-273-9/+16
| | | | Notes: svn path=/head/; revision=30765
* Changes to support full make parallelism (-j<n>) in the worldJordan K. Hubbard1997-10-051-3/+3
| | | | | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su> Notes: svn path=/head/; revision=30113