millert
440a67a653
Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGET
ioctl(2), an unprivileged process may allocate a pty and have its owner
and mode set appropriately. This means that programs such as xterm and
screen no longer need to be setuid. Programs using the openpty()
function require zero changes and will "just work".
Designed by beck@ and deraadt@; changes by beck@ with cleanup (and
a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me.
Tested by many.
21 years ago
otto
c42a4efa7d
o Do not drop unit when printing -100
o Round negative numbers correctly
o Do not print fractional valus for byte values
ok ian@ henning@
21 years ago
jmc
3eae044b12
utilties -> utilities; from Jared Yanovich
21 years ago
markus
54122b6b38
fix use-after-free for expired passwds; ok deraadt, tdeval
21 years ago
deraadt
9fdc426d5e
move junk (bad code, terrible APIs) to the only program that uses it;
millert ok
21 years ago
jmc
bad23052ea
fix function description in SYNOPSIS;
21 years ago
deraadt
0c743cc175
ansi and protos
21 years ago
millert
4f09d8e4af
Sync with share/misc/license.template and add missing DARPA credit
where applicable.
21 years ago
millert
6014de925d
Use an ISC-tyle license for all my code; it is simpler and more permissive.
21 years ago
millert
679cd5d050
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
21 years ago
jmc
134f7e2634
- section reorder
- clean up .Xr's
21 years ago
jmc
ecfaa349ba
- typos
- new sentence, new line
22 years ago
ian
3b9490ce8c
New: fmt_scaled() and scan_scaled() convert to and from "human readable"
or scaled numbers. fmt_scaled, and the format, based on Ken Stailey's
code for "df -h"; scan_scaled is new. Significantly commented on
and reworked by pjanzen@; other comments from millert@. OK pjanzen@.
22 years ago
deraadt
876bf51192
knf
22 years ago
millert
f3a8ddc140
Throw an error if the username field is empty; noticed by mpech@
22 years ago
deraadt
d3c9af5aa3
more asprintf; millert ok
22 years ago
deraadt
8ccc7922d7
asprintf; millert ok
22 years ago
jmc
8d7d8263de
.Xr typos;
ok deraadt@
22 years ago
millert
47c7c08921
Crank all library major numbers. Needed due to the fact that we
now build libraries with propolice enabled. Without this, existing
binaries (such as ports/packages) that link with any system library
other than libc will fail with an undefined symbol of "___guard"
(__guard on ELF).
Pointed out by markus@ and discussed with deraadt@
22 years ago
millert
1670acafb5
Add HISTORY section
22 years ago
deraadt
f73c2b1c58
do not export error_table
22 years ago
millert
ca00f6f3e4
mark pw_error() __dead since it exits
22 years ago
deraadt
695e261e2d
%u for uid/gid; millert ok
22 years ago
millert
b013f0d14d
Now that we don't have a trailing newline we need to explicitly check
that the first char in the line is not NUL after killing comments.
22 years ago
millert
6cea6780f6
Use strtok_r() instead of strsep() since the latter treats consecutive
field separators as empty field. This is not what we want for
whitespace-delimited fields.
22 years ago
millert
fab5e38f3f
login_fbtab(3) fixes:
o make first arg const since we don't modify it
o use strsep() instead of strtok() as strtok() changes internal state
o add some bounds checking and use strlcat() instead of pointer arithmetic
o ANSI function headers
Originally based on a patch from Lars J. Buitinck but much modified.
22 years ago
fgsch
fb18813faf
some -Wall and spaces cleanup, scsi.c left.
some brave soul should look at it.
22 years ago
deraadt
1861c91a56
pid_t cleanup
23 years ago
deraadt
9f44aaa017
strlcpy at most 16 characters, so says man page
23 years ago
deraadt
5cdc7e2335
strlcpy and KNF
23 years ago
deraadt
23c67c2ee8
KNF
23 years ago
itojun
19f3ad7a81
atexit(3) can fail. handle error accordingly. deraadt ok
XXX libraries should not use atexit(3) from within, as program can terminate
with _exit.
23 years ago
mpech
bc299477ad
o) start new sentence on a new line;
o) always close .Bl tags;
o) fix usage of .Xr;
millert@ ok
23 years ago
mpech
93a232f650
Initial cleanup:
o) remove extra space in the end of line;
o) remove extra blank lines in the end of file;
o) remove .Pp before .Ss;
o) CAVEAT -> CAVEATS;
o) fix usage of .Fa;
o) <blank-line> -> .Pp;
o) wrap long lines;
millert@ ok
23 years ago
mpech
c68a3ac420
Clean up after pw_file().
millert@ ok
deraadt@ ok to commit
23 years ago
pvalchev
849e52ae81
mdoc fixes from pjanzen
23 years ago
pvalchev
8da612ea6c
rephrase warning; from miod
23 years ago
pvalchev
18eb0e3fca
print a warning that realpath points to internal static storage space that
will be overwritten by subsequent calls; suggested by pjanzen, ok millert
23 years ago
deraadt
893d09ec7a
fgsch, if you commit without test compiling ONE MORE TIME, I will send a castration team down to argentina
23 years ago
fgsch
265d2ab100
use sizeof w/ defines; niklas@ millert@ ok.
23 years ago
mpech
1d113f7a3f
login_close() should avoid memory leak.
millert@ ok
23 years ago
millert
959b08f109
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
23 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
23 years ago
millert
1e2fd73b66
Use the volatile specifier to fix warnings about variables being
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
23 years ago
mpech
a0ba08a5ce
pids should be pid_t, not int
23 years ago
deraadt
b7edc160a2
save the pid as well, and only do the atexit in the same pid
23 years ago
miod
5fff16eb20
Warn that pidfile() will not have the expected removal behaviour if _exit()
is called.
23 years ago
deraadt
a3de80a1d8
save errno in signal handler
23 years ago
mpech
c05e66058a
Start new sentence on a new line.
jakob@ ok
23 years ago
jakob
b2fc98a506
re-enable pidfile(3). ok millert@
23 years ago