christos
163d05f57d
PR/28792: FUKAUMI Naoki: passwd: Couldn't generate salt: Invalid argument
...
I broke the case where /etc/passwd.conf was empty.
2005-01-15 03:07:56 +00:00
dyoung
4d24861fc9
For consistency of sockaddr_snprintf(3) with snprintf(3) and
...
snprintb(3), do not count the terminating NUL in the return value.
Update the regression tests to match. Approved by christos@.
2005-01-13 00:44:25 +00:00
christos
4c3e77eff3
add pw_getpwconf(), bump.
2005-01-12 03:34:33 +00:00
christos
ca7489bf5c
Avoid spinning if writing to a pty returns 0. This happened to me when
...
I had a pty with a suspended sshd (why?).
2005-01-08 06:43:16 +00:00
christos
f1a325d103
Unbreak setuserpath(); from Nick Hudson.
2004-12-20 18:42:03 +00:00
wiz
ff7ab08a15
Mmm, API changes without date bumps... bump date for constification.
2004-12-11 16:50:56 +00:00
christos
a5c1a01ed9
WARNS=3; fix cast-qual issues.
2004-12-11 06:41:15 +00:00
christos
70756f97e8
Constify; the api was completely broken before.
2004-12-11 06:40:42 +00:00
peter
192aae95b5
Add missing LIBRARY section.
...
ok wiz@
2004-12-01 00:06:46 +00:00
christos
5a55e0c902
Don't give write privileges at all if the tty group is missing.
2004-11-25 02:49:46 +00:00
christos
db5d4e2d6a
I really want to kill the hard-coding of _TTY_GID. Set the group to the
...
primary group of the user if the group tty does not exist.
2004-11-24 22:17:19 +00:00
christos
6845cdfbb8
fix the header.
2004-11-21 03:04:14 +00:00
wiz
7a3b0ef281
Formatting fixes, and a typo fix.
2004-11-20 23:29:33 +00:00
christos
1fe49f768f
Add a manual page.
2004-11-20 03:06:09 +00:00
christos
09ad64e21f
check for getnameinfo error correctly; thanks to Peter Postma.
2004-11-19 22:05:23 +00:00
christos
eb6484700a
Add sockaddr_snprintf; XXX: Needs a man page.
2004-11-19 21:37:19 +00:00
dsl
ece723d1ec
Add if_media.c, functions for converting media to/from strings.
...
(from ifconfig.c)
2004-11-11 20:36:28 +00:00
christos
d07f9e79e8
- don't complain if the pty is of the form pts/n
...
- fix off by one error in iovlen bounds checking
- print the function name in the error message and make the
error messages consistent
- knf
2004-11-10 17:00:41 +00:00
christos
2611d5a68f
KNF; Simplify some logic, so that lines don't wrap. Explain why we
...
break, continue, or return from the tty scanning loops.
2004-09-18 20:14:22 +00:00
yamt
2936303c19
openpty: just check errors of syscalls,
...
instead of checking permission beforehand in userland.
2004-09-18 16:44:38 +00:00
wiz
245c7e5202
New sentence, new line.
2004-08-04 15:07:37 +00:00
thorpej
7c161da819
- Rename pw_copy() to pw_copyx(), make it return a success/failure code,
...
and add "errbuf" and "errbufsz" parameters so that errors can be handled
gracefully, rather than simply exiting the process.
- Add a pw_copy() wrapper around pw_copyx() to preserve old behavior for
apps that use it.
- Bump shlib version to 7.4.
2004-08-03 23:29:04 +00:00
christos
92cd5ee20c
Don't allow openpty to succeed if the caller is non-superuser.
...
XXX: we cross-reference ptm 4 which does not exist (yet)
2004-06-18 02:42:57 +00:00
christos
f099fa154d
use the pty multiplexor if it exists.
2004-05-27 03:12:48 +00:00
lukem
2ebcc58148
sbsize should be parsed as R_CSIZE so that suffixes work correctly.
...
Fix from Christian Biere in PR [lib/25504].
(XXX: the R_CSIZE parsing should be changed to using strsuftollx(3))
2004-05-09 23:28:11 +00:00
christos
dea77b1806
sprinkle const
2004-04-23 15:23:26 +00:00
matt
d07ed6425d
Add sbsize login capability.
2004-04-18 18:21:43 +00:00
wiz
f343a3e8ab
Use pid_t for pids. From Jeff Ito in PR 24854.
2004-03-29 11:52:39 +00:00
wiz
f05e6f1a3a
occured -> occurred. From Peter Postma.
2004-02-24 15:12:51 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
christos
5028fe3e04
delint pointer casts.
2003-10-25 07:31:27 +00:00
christos
ad96bb0dec
remove unused variable
2003-10-25 07:31:12 +00:00
fvdl
bada5458de
Don't use NULL to compare against an int.
2003-10-21 00:55:05 +00:00
fvdl
03831599c1
The last argument to sysctl is a size_t, not a pointer; don't pass NULL.
2003-10-21 00:47:46 +00:00
itojun
c469f0373f
initialize 'res' to NULL
2003-09-08 20:54:48 +00:00
itojun
0676396691
plug possible memory leak. from openbsd
2003-09-08 16:19:40 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
salo
99410184e7
netbsd.org->NetBSD.org
2003-07-26 19:24:24 +00:00
wiz
6e5644d28c
Aq Pa instead of Pa Aq.
2003-06-27 13:58:51 +00:00
agc
4acc601512
Minor grammatical correction.
2003-05-06 07:38:19 +00:00
christos
63c4aa480d
PR/7885: Kip Rugger: ttylock(3) ignores flags and locker parameters
2003-04-21 00:39:40 +00:00
wiz
472351e13d
Use
...
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz
44b6aa4c8b
Mostly mdoc improvements, some typos.
2003-04-16 12:53:37 +00:00
christos
8099c8302c
add functions to retrieve option values.
2003-04-11 17:36:57 +00:00
perry
8cb755776e
runnning->running from Igor Sobrado, PR misc/19814
2003-03-31 18:49:45 +00:00
lukem
9b087b0ba0
Clear O_NONBLOCK correctly (previous code probably only worked because
...
O_NONBLOCK and F_SETFL are the same value).
Obtained from FreeBSD PR 8681 via FreeBSD's usr.bin/wall/ttymsg.c 1.5.
2003-03-27 12:04:57 +00:00
wiz
2c30441d13
Try to get some consistency in the used macros; other minor fixes.
2003-03-22 15:46:47 +00:00
jdolecek
1edd42a9d2
move getmntopts(3) to libutil, build and install also it's manpage
...
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
2003-03-22 12:43:57 +00:00
grant
104b35fe93
'NetBSD.org' and some mdoc fixes.
2003-02-14 16:29:11 +00:00
petrov
2bb9ea7350
strcmp needs string.h.
2003-02-14 04:03:27 +00:00