Commit Graph

69 Commits

Author SHA1 Message Date
phil
01d72f4add Change pw_copy to take an optional 4th parameter (old_pw), a pointer
to a passwd structure.  If a good pointer, make sure old entry in file
is identical to passed passwd (old_pw).  If not, abort.

Update documentation, bump major version due to change to pw_copy.
1997-07-24 08:50:31 +00:00
christos
3a693097b3 Remove accidental copy-right attribution. 1997-07-06 19:35:14 +00:00
christos
bb4dad4f04 PR/3832: Enami Tsugutomo: passwd.c will not compile on NetBSD/alpha 1997-07-06 18:17:21 +00:00
mikel
dea51c3ad3 s/ttyaction/ttymsg/g as noted by Dave Huang <khym@bga.com>
set argument of .Os to NetBSD 1.3
add xref to writev(2), for a better explanation of uio
misc. cleanup
1997-07-01 06:24:01 +00:00
mikel
adf5a16deb indicate new location in error message 1997-07-01 06:10:53 +00:00
christos
023f063691 Add ttymsg.3 to the man pages. 1997-06-29 18:45:24 +00:00
christos
f5646a08d4 - RCSID police
- Add ttymsg.3
1997-06-29 18:44:03 +00:00
mikel
20690bcbac include <fnmatch.h> for fnmatch() prototype
use __CONCAT() to generate pathenv
1997-06-20 06:42:20 +00:00
mikel
6aa3be2874 add parens for gcc -Wall 1997-06-20 06:17:27 +00:00
lukem
ad8e075042 in pw_scan(), parse [gu]id with strtoul() instead of atoi(), and sanity
check a) the parsed value was just a number, b) it doesn't exceed [GU]ID_MAX
1997-05-22 03:08:42 +00:00
mycroft
8feb354e12 Pull in err.h for prototypes. 1997-05-09 18:37:45 +00:00
mycroft
9ba4365fce Allow the full range of UIDs and GIDs. 1997-04-23 18:51:17 +00:00
mrg
23768a9e9a remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:42:03 +00:00
thorpej
3fe99e29ea Deal with complex EDITOR strings (e.g. `pico -t'). Fixes PR #2520. 1996-12-09 22:23:34 +00:00
gwr
603bda9c4e Use _exit after exec failure (not exit). 1996-11-29 18:50:37 +00:00
gwr
d8201fb9f6 Use snprintf instead of sprintf. 1996-11-22 22:04:25 +00:00
gwr
3d5027bee4 Correct lengths used to build environment strings. (Fixes PR#2948) 1996-11-18 18:54:36 +00:00
lukem
01d3778298 fix spello of 'convenience' 1996-11-17 23:09:55 +00:00
fvdl
44fa942695 The FILES section named '/etc/ttyactions'; remove that 's'. 1996-11-16 20:50:12 +00:00
gwr
9d69345016 Allow the ttyname parameter of ttyaction() to be the full pathname of
the device, because that is what getty and login have handy.  The
"/dev/" part is skipped before scanning the /etc/ttyaction file.
1996-11-14 19:16:01 +00:00
gwr
6ab34f5889 Add ttyaction.3 and ttyaction.c 1996-11-14 17:53:07 +00:00
gwr
5f5eeb9d41 Increment minor version for new function ttyaction(). 1996-11-14 17:52:02 +00:00
mycroft
7cc5f9cd7a Make openpty() work more than once. 1996-11-12 16:39:38 +00:00
lukem
0162911bb5 - fix retval of openpty()
- correct two .Fn references to forkpty()
- describe retval of forkpty(); it can return PID as well
- add xref to fork(2)
1996-11-03 14:27:54 +00:00
ghudson
23beafab63 Document that the caller must do a pw_abort() if pw_mkdb() fails. 1996-06-02 19:26:18 +00:00
ghudson
e257708bf2 Don't delete the lock file if pwd_mkdb fails. The caller will take care
of it by calling pw_abort() or pw_error() as appropriate.
1996-06-02 19:25:43 +00:00
thorpej
7795b4110f Add two functions to libutil:
- getmaxpartitions: get the value of MAXPARTITIONS for the
	  currently running system

	- getrawpartition: get the value of RAW_PART for the
	  currently running system

These functions are necessary since the value of MAXPARTITIONS might
be different across platforms which are binary compatible (e.g. amiga
and sun3).
1996-05-16 07:03:28 +00:00
jtc
e42a94845a Minor reorganization of libutil, including the addition of passward
locking and editing functions.
From Greg Hudson <ghudson@MIT.EDU>
1996-05-15 21:42:23 +00:00
pk
8347998a01 Prototypes (PR#1100). 1995-06-05 19:43:53 +00:00
mycroft
4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
jtc
a8bfd3d17a Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
1994-11-17 07:17:53 +00:00
cgd
3a724adbf7 minor cleanup; kill unnecessary casts 1994-05-04 10:55:57 +00:00
andrew
fc3e00430e Support up to 256 ptys. 1994-04-06 08:54:35 +00:00
cgd
f74f70059d off_t 1994-04-01 03:06:40 +00:00
cgd
19601b5460 _double_ major number bump! joy! 1994-03-27 09:18:25 +00:00
mycroft
025a03852f Clean up deleted files. 1994-01-27 23:31:23 +00:00
cgd
7999e08c50 get rid of stuff that doesn't belong here 1994-01-27 23:31:19 +00:00
cgd
b7a2e44720 kill force. 1994-01-25 21:03:26 +00:00
cgd
985686cfed kill the 'prog' arg to getbsize(); it's unneeded. minor rev bump. 1994-01-25 20:06:03 +00:00
jtc
e304028c04 Fix off by one bug in pwcashe routine group_from_gid(). 1994-01-19 21:15:46 +00:00
cgd
3a44018403 get rid of the awful RSS hack 1994-01-07 19:10:06 +00:00
pk
47b4886a7f Return a well-known constant after becoming a daemon. 1993-12-19 08:44:42 +00:00
mycroft
cbe3d33b6d P[GD]_SHIFT --> P[GD]SHIFT 1993-12-15 00:50:45 +00:00
cgd
f7c20a904e look for m68k, rather than hp300 or amiga 1993-12-05 00:33:30 +00:00
cgd
daea3d2f86 add shlib_version file, with version 0.0 1993-11-08 03:48:53 +00:00
mycroft
ababab0671 Forgot to initialize `cp' in setsyserr(). 1993-10-13 15:49:55 +00:00
mycroft
db3323c9ef Remove code for old VM system. Don't use page tables in kvm_procread().
Change `#if DEBUG' to `#ifdef DEBUG'.  Read some symbols from the kernel
only once.
1993-10-02 07:07:43 +00:00
mycroft
669b9e506a Last change was almost correct, but we have to check that the pager actually
has the page.  If not, we go up the shadow chain.
1993-08-16 07:27:06 +00:00
mycroft
9b8df6ad33 Fix an off-by-one error when scanning the vm map for a page. Also, if the
page is not in core, don't recurse into shadow objects if we've already found
a pager.
1993-08-15 13:57:51 +00:00
mycroft
cfafc9262a Fix a bug in virtual to physical address translation on hp300s, and add support
for Amigas.
1993-08-15 01:54:29 +00:00