| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
while here, fix missing parentheses of the return statement of pw_make.
Approved by:	des (mentor)
Notes:
    svn path=/head/; revision=229572
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
- if pw is NULL and oldpw is not NULL then the oldpw is deleted
- if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid
then it renames the user
add new gr_* functions so now gr_util API is similar to pw_util API,
this allow to manipulate groups in a safe way.
Reviewed by:	des
Approved by:	des
MFC after:	1 month
Notes:
    svn path=/head/; revision=228545
 | 
| | 
| 
| 
| 
| 
| 
|  | 
sprintf(3).
Notes:
    svn path=/head/; revision=211392
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
Replace it to avoid conflict.
MFC after:	3 weeks
Notes:
    svn path=/head/; revision=199826
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=165906
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=162141
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
(copy it silently, do not dereference NULL pointer).
PR:             bin/102848
Reviewed by:    security-officer (cperciva)
MFC after:      1 week
Notes:
    svn path=/head/; revision=161997
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
to variadic functions.
Approved by:	das (mentor)
Notes:
    svn path=/head/; revision=129392
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=121193
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=116344
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=113333
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
preparing to edit it.
PR:		bin/50563
Notes:
    svn path=/head/; revision=113305
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
or the tty, just block selected signals in the parent like system(3) does.
Many thanks to bde for his assistance in finding the correct solution.
PR:		bin/50679
Notes:
    svn path=/head/; revision=113301
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
proper way to fix this.  The way this works is to prepend "exec " to
the editor command to eliminate the "shell in the middle" which prevents
us from properly reawakening the editor after a SIGTSTP.
PR:		bin/50679
Notes:
    svn path=/head/; revision=113265
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
variable.
PR:		48748
Reviewed by:	mike (mentor)
Notes:
    svn path=/head/; revision=112328
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Submitted by:	joerg
Notes:
    svn path=/head/; revision=106140
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Distinguish between a held lock and a failed lock op.
If rpc.lockd is not running on a diskless client this makes clearer
what the problem is.
Notes:
    svn path=/head/; revision=98693
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Sponsored by:	DARPA, NAI Labs
Notes:
    svn path=/head/; revision=96220
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Sponsored by:	DARPA, NAI Labs
Notes:
    svn path=/head/; revision=96199
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=94776
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Sponsored by:	DARPA, NAI Labs
Notes:
    svn path=/head/; revision=90233
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Idea from: Theo de Raadt <deraadt@openbsd.org>
Notes:
    svn path=/head/; revision=79452
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Reviewed by:	kris
Notes:
    svn path=/head/; revision=75821
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=62988
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=50479
 | 
| | 
| 
| 
| 
| 
| 
|  | 
function is also used by chpass(1) and passwd(1).
Notes:
    svn path=/head/; revision=48328
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
for the password files.
PR:	2703
Submitted by:	jmg
Notes:
    svn path=/head/; revision=48232
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=41711
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
child to the parent somehow.
PR:		8353
Submitted by:	Andrew J. Korty <ajk@purdue.edu>
Notes:
    svn path=/head/; revision=40538
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=30765
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
Notes:
    svn path=/head/; revision=30113
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
$ vipw
[corrupt a line in editor, exit editor]
pwd_mkdb: corrupted entry
pwd_mkdb: at line #2
pwd_mkdb:
/etc/pw.012585: Inappropriate file type or format
re-edit the password file? [y]: n^D^D
[hang]
Notes:
    svn path=/head/; revision=29980
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
the database.
PR:		3397
Submitted by:	taob@risc.org (Brian Tao)
Notes:
    svn path=/head/; revision=28662
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
option to pwd_mkdb and adding this option to utilities invoking it.
Further, the filling of both the secure and insecure databases has been
merged into one loop giving also a performance improvemnet.
Note that I did *not* change the adduser command. I don't read perl
(it is a write only language anyway).
The change will drastically improve performance for passwd and
friends with large passwd files. Vipw's performance won't change.
In order to do that some kind of diff should be made between the
old and new master.passwd and depending the amount of changes, an
incremental or complete update of the databases should be agreed
upon.
Notes:
    svn path=/head/; revision=16876
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
'NIS information unchanged' or '/etc/master.passwd unchanged'
depending on which was is being modified (conditional on -DYP).
This is to save me the trouble of writing a whole other error
routine (nis_error()?) for the upcoming changes to passwd and
chpass.
Notes:
    svn path=/head/; revision=10048
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=8857
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Obtained from: NetBSD
Notes:
    svn path=/head/; revision=6972
 | 
|   
  
  
   | 
Notes:
    svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553
 |