| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Pointed-out-by: bde (a long while ago)
|
|
|
|
| |
Pointed-out-by: bde
|
|
|
|
|
|
| |
in-place.
Obtained from: OpenBSD ar_subs.c rev 1.7 by Tood Miller <millert@openbsd.org)
|
|
|
|
| |
Obtained from: OpenBSD file rev 1.4 by mickey
|
|
|
|
|
|
|
| |
>sprintf -> snprintf paranoia
Obtainted from: OpenBSD src/bin/stty/print.c v1.5
by Todd Miller <millert@openbsd.org>
|
|
|
|
|
|
| |
Make `date -?' output (pretty much) the same as
the man page
PR: 5269
|
|
|
|
|
| |
Reorder includes to be alphabetical some places since I already was in
here.
|
|
|
|
|
|
|
|
|
| |
> Error out if someone tries to mv a mount point. Old behavior was to
> move all files contained in the mounted filesystem to the dest. dir
> which could be quite nasty. Personally, I think rename(2) should
> return EPERM or EINVAL instead of EXDEV.
Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org>
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
| |
(e.g.: rcp -r /tmp/1 /tmp/2). See the cp(1) manpage for more details.
|
|
|
|
| |
suggested by bde via sef.
|
| |
|
| |
|
|
|
|
|
| |
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for users who are root, or in group wheel. This is useful on large timesharing
systems where a PS command can cause the system to grind to a halt. The
ability to get the information isn't diminished for those who really need the
additional detail (administrators.) Normal users won't see any difference unless
the processes are swapped out. The "really get it mode" is invoked by the
use of an additional flag in the command string "-f". New/old behavior is
selectable with a compile option.
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Obtained from: Whistle Communications tree
Add an option to the way UFS works dependent on the SUID bit of directories
This changes makes things a whole lot simpler on systems running as
fileservers for PCs and MACS. to enable the new code you must
1/ enable option SUIDDIR on the kernel.
2/ mount the filesystem with option suiddir.
hopefully this makes it difficult enough for people to
do this accidentally.
see the new chmod(2) man page for detailed info.
|
|
|
|
| |
signal.
|
|
|
|
| |
to be sorted. This temporarily broke the "osync" option.
|
|
|
|
|
|
| |
cast value that was always ignored. Rev.1.9 of trap.c made this
more bogus by returning a semantically different value after calling
siginterrupt(). Avoid these problems by not returning a value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
trap 'echo xxx' 1 2 3 15
read x
is not interrupted by ^C (due to restartable read syscall) and must be
interrupted per POSIX
Worse case:
read -t 5 x
hangs forever after ^C pressed (supposed to timeout after 5 secs)
Fixed by adding siginterrupt(signo, 1) after catch handler installed
2) Do not reinstall sighandler immediately after it is called,
BSD do it for us
|
|
|
|
| |
Pointed out by bde.
|
|
|
|
|
|
| |
pointless paren's to return statements.
Nitpicked by: bde :)
|
|
|
|
| |
PR: bin/4415
|
|
|
|
|
|
|
| |
things like diskless clients' swap files etc.
Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many
stylistic changes by me)
|
| |
|
| |
|
|
|
|
| |
Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org>
|
|
|
|
| |
Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>)
|
|
|
|
| |
Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
|
|
|
|
|
|
|
| |
don't munge argv strings -- copy them first. avoids 'w' showing:
deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs
Obtained from: OpenBSD (file rev 1.3) by Theo de Raadt <deraadt@openbsd.org>
|
|
|
|
| |
Obtained from: Theo deRaadt <theo@openbsd.org> (OpenBSD rev 1.6)
|
|
|
|
| |
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD rev 1.3)
|
|
|
|
| |
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD csh.c rev 1.3 and 1.4)
|
|
|
|
|
|
| |
target.
Reviewed by: <many different folks>
Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
|
|
|
|
|
| |
print which input mv(1) expect (y/n) and print a warning if the
file was not overwritten.
|
|
|
|
|
| |
print which input cp(1) expect (y/n) and print a warning if the
file was not overwritten.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: bin/4661
Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank)
|
|
|
|
|
|
|
|
| |
'read' command to return an error if the user fails to supply any
input withink a given time period. The behaviour of this option is
similar to that of the like-named option in ksh93.
Reviewed by: joerg
|
|
|
|
|
|
|
| |
$ touch from to
$ echo -n loop | mv -i from to
overwrite to?
^C
|
|
|
|
| |
Also make -Wall a bit quieter.
|
| |
|
|
|
|
|
| |
PR: bin/4558
Submitted by: Keith Bostic
|
|
|
|
|
|
| |
The -c flag is not documented in the sh(1) manapge.
Submitted by: adrian@virginia.edu
|
|
|
|
|
| |
PR: docs/4450
Submitted by: josh@quick.net
|
|
|
|
|
|
| |
for potential trouble.
Reviewed by: security officers.
Noted by: OpenBSD
|
|
|
|
|
|
| |
Submitted-by: Josh Gilliam
Closes PR:4427
|