Eivind Eklund
a33d9e6606
Merge from OpenBSD:
...
> 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>
1997-12-10 17:52:49 +00:00
Wolfram Schneider
ac105a5777
Add -P option to cp(1) for local to local copying.
...
Pointed out by: bde
1997-12-08 21:02:36 +00:00
Wolfram Schneider
f1f5ba1e4c
Use cp -R' instead
cp -r' for local to local coping
...
(e.g.: rcp -r /tmp/1 /tmp/2). See the cp(1) manpage for more details.
1997-12-07 20:49:39 +00:00
Peter Wemm
4b4f0fcd24
Move procctl to the Attic, it's been copied to usr.sbin/procctl as
...
suggested by bde via sef.
1997-12-07 02:26:23 +00:00
Sean Eric Fagan
a367d57578
Add procctl to the list of programs built.
1997-12-06 04:19:41 +00:00
Sean Eric Fagan
c430992a81
First checkin of the procctl program.
1997-12-06 04:19:09 +00:00
John Dyson
b548141b9b
Document the new -f flag.
...
PR: 5196
Submitted by: Matt Dillon <dillon@best.net>
1997-12-05 07:35:31 +00:00
John Dyson
3ac5e95583
Add an option to building PS, so that the upages are explicitly paged in only
...
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>
1997-12-05 07:33:40 +00:00
Julian Elischer
52bf64c787
Reviewed by: hackers@freebsd.org in general
...
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.
1997-11-13 00:28:51 +00:00
John Polstra
c351e0897e
Document the exit status for a command that was terminated by a
...
signal.
1997-11-12 04:32:50 +00:00
Joerg Wunsch
1898febe2d
Sort "sparse" into alphabetical order, since dd's `conv' options need
...
to be sorted. This temporarily broke the "osync" option.
1997-11-11 20:35:29 +00:00
Bruce Evans
28701136f7
Fixed some type and value mismatches. setsignal() returned a bogusly
...
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.
1997-11-10 11:32:24 +00:00
Andrey A. Chernov
8dd81503df
1) Fix longstanding bug:
...
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
1997-11-05 23:33:58 +00:00
Wolfgang Helbig
af6ff02816
Synchronize usage() and man page.
...
Pointed out by bde.
1997-10-26 10:33:02 +00:00
Joerg Wunsch
80214f046b
Style police: keep a variable list in alphabetical order, and add
...
pointless paren's to return statements.
Nitpicked by: bde :)
1997-10-13 09:36:05 +00:00
Joerg Wunsch
b8904f2acb
Make df(1) exit with non-success status if something went wrong.
...
PR: bin/4415
1997-10-12 13:55:43 +00:00
Joerg Wunsch
4ddfeabd8f
Teach dd(1) about an option to write sparse files. Can be useful for
...
things like diskless clients' swap files etc.
Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many
stylistic changes by me)
1997-10-11 20:09:05 +00:00
Eivind Eklund
f8ce2ec95f
Un-clobber mktemp->mkstemp patch.
1997-10-09 11:05:16 +00:00
Eivind Eklund
73db7d72c8
Add <sys/errno.h>
1997-10-09 10:50:54 +00:00
Eivind Eklund
ad0b1f1ac3
make signal handlers errno safe
...
Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org>
1997-10-08 14:47:56 +00:00
Eivind Eklund
af6ab81d43
mktemp -> mkstemp
...
Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>)
1997-10-08 13:46:39 +00:00
Eivind Eklund
bd6b64117b
make signal handlers errno safe
...
Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
1997-10-08 12:59:14 +00:00
Eivind Eklund
4c33974251
Slightly improved fix compared to my insiration
...
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>
1997-10-08 12:10:33 +00:00
Eivind Eklund
186741ecdb
save errno in sigchld handler
...
Obtained from: Theo deRaadt <theo@openbsd.org> (OpenBSD rev 1.6)
1997-10-07 16:43:16 +00:00
Eivind Eklund
ea3a01d31d
vsprintf -> vnsprintf paranoia.
...
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD rev 1.3)
1997-10-07 16:33:22 +00:00
Eivind Eklund
13a71f5d9b
Don't honor $HOME if >= MAXPATHLEN
...
Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD csh.c rev 1.3 and 1.4)
1997-10-07 16:27:48 +00:00
Jordan K. Hubbard
97fe7f477f
Changes to support full make parallelism (-j<n>) in the world
...
target.
Reviewed by: <many different folks>
Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
1997-10-05 09:40:24 +00:00
Wolfram Schneider
ae691257b7
mv(1) is too silent if used with the option -i. It should
...
print which input mv(1) expect (y/n) and print a warning if the
file was not overwritten.
1997-10-04 13:02:06 +00:00
Wolfram Schneider
ab215c6703
cp(1) is too silent if used with the option -i. It should
...
print which input cp(1) expect (y/n) and print a warning if the
file was not overwritten.
1997-10-03 18:11:14 +00:00
Wolfram Schneider
f50f7e1e32
Change example from US to international standard date notation.
1997-10-03 18:09:17 +00:00
Daniel O'Callaghan
c5c1c13516
Back out suppress '\n' mod.
1997-10-03 12:54:30 +00:00
Daniel O'Callaghan
34de7199ea
Add the '-s' flag to the usage string.
1997-10-01 05:44:35 +00:00
Daniel O'Callaghan
70a53cd743
Add the ability to supress the '\n' at the end of the date printed.
1997-10-01 05:24:08 +00:00
Joerg Wunsch
adb7f7bca7
Fix the broken `date HHMM.SS' handling.
...
PR: bin/4661
Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank)
1997-09-30 20:06:15 +00:00
Mike Smith
afa53c8df7
Add the '-t timeout' option to the 'read' builtin. This allows the
...
'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
1997-09-29 15:15:16 +00:00
Wolfram Schneider
fee9ad97d6
Endless loop.
...
$ touch from to
$ echo -n loop | mv -i from to
overwrite to?
^C
1997-09-28 10:41:40 +00:00
Mark Murray
8a7ad3adf7
Change to use the new KTH Kerberos.
...
Also make -Wall a bit quieter.
1997-09-28 08:32:59 +00:00
Philippe Charnier
34384756cd
environmental -> environment.
1997-09-18 06:55:21 +00:00
Sean Eric Fagan
51f26ac519
Fix sorting of directories when doing '-d'.
...
PR: bin/4558
Submitted by: Keith Bostic
1997-09-18 06:42:27 +00:00
Wolfram Schneider
c7a197e1d8
PR: docs/4449
...
The -c flag is not documented in the sh(1) manapge.
Submitted by: adrian@virginia.edu
1997-09-13 17:40:00 +00:00
Wolfram Schneider
f6b31571f6
spelling corrections.
...
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
Jordan K. Hubbard
f9fc03961c
This command doesn't need to be setuid root, it's only asking
...
for potential trouble.
Reviewed by: security officers.
Noted by: OpenBSD
1997-09-12 15:00:06 +00:00
John-Mark Gurney
e3d79adaba
fix misspelling
...
Submitted-by: Josh Gilliam
Closes PR:4427
1997-08-30 11:09:26 +00:00
John-Mark Gurney
81cd6abb0a
fix misspelling
...
Submitted-by: Josh Gilliam
Closes PR:4425
1997-08-30 11:06:35 +00:00
Søren Schmidt
a885d9dcf9
Dont have an internal function named "warn" it clashes with libc..
...
Needed for ELF.
1997-08-29 16:12:30 +00:00
Bruce Evans
18f368f2e4
Restored clobbered parts of rev.1.15 (build intermediate object files
...
for tools).
1997-08-25 19:50:01 +00:00
Steve Price
b74ad5265d
Correct confusing error message when called as 'stty -sane'.
...
PR: bin/3573
1997-08-24 00:26:12 +00:00
Jonathan Lemon
d623c5c11e
Disallow empty arguments (eg: '') as process ids.
...
PR: 2631
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-08-21 21:34:43 +00:00
Jonathan Lemon
7d4774d0ab
Document correct option in manual page.
...
PR: 3769
Submitted by: johnp@lodgenet.com
1997-08-19 21:52:07 +00:00
Jonathan Lemon
af041bf3fd
Pad the input buffer whenever sync is used, not just if the noerror flag
...
is also set.
Change osync to not to tack on an empty block if the input buffer is null,
or an even multiple of the blocksize.
Also change osync to pad the output with nulls/spaces depending whether
this is a block-oriented conversion or not (same as sync).
PR: 3818
1997-08-19 19:46:18 +00:00
Brian Somers
7fedb877a4
Hint at how to use TZ.
...
Submitted by: grog@lemis.com
1997-08-18 20:27:17 +00:00
Steve Price
ead152eb86
Make all status values an integral type and use
...
pid_t when referring to process IDs.
1997-08-18 02:53:20 +00:00
Steve Price
6ad175c69e
Use -I${.CURDIR}/../../sys so that the path is relative
...
to the source code directory.
Submitted by: bde
1997-08-13 17:35:00 +00:00
Andrey A. Chernov
a264029085
Describe signals behaviour now
1997-08-12 21:20:12 +00:00
Steve Price
c1cee2f62b
Oops, add #include's (forgotten in last commit) to make this
...
compile again.
1997-08-11 02:41:02 +00:00
Steve Price
be73b9df4d
Use -I../../sys instead of -I/sys.
1997-08-11 02:36:09 +00:00
Steve Price
aeb7f2b6d3
Remove #ifdef NEWVM code and remove extra "key.name = p" line.
1997-08-11 02:35:16 +00:00
Steve Price
e27525d9f8
Fix seg fault when invalid keywords are used.
...
PR: bin/4253
Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
1997-08-11 02:29:50 +00:00
Brian Somers
233d16da02
Remove forgotten debug statement.
1997-08-10 16:37:33 +00:00
Brian Somers
86a3e2a13a
Add "-f fmt date" for specification of the
...
date using strptime(3).
Suggested by: Michael Smith <msmith@atrad.adelaide.edu.au>
Change mm & dd to MM & DD so that they don't
clash with the month.
1997-08-10 16:36:59 +00:00
Brian Somers
698f86e401
Change [-DMHW [+|-]val] to [-v [+|-]val[ymwdHM]]
...
Support Hours & Minutes
Add -Wall to Makefile
1997-08-09 22:34:06 +00:00
Steve Price
880fdc3dd9
More minor nits (mostly using memove instead of memcpy).
1997-08-08 00:54:05 +00:00
Steve Price
242fa23c9c
More $@ -> ${.TARGET} that I missed earlier.
1997-08-08 00:49:25 +00:00
Steve Price
bc4b855161
Observe precedence set by Philippe Charnier when adding an
...
rcsid.
1997-08-07 22:33:01 +00:00
Steve Price
febad2fcf4
Observe precedence set by Phillippe Charnier in adding an
...
rcsid.
1997-08-07 22:28:25 +00:00
Steve Price
380fdd7d7e
Changes include: sccsid -> rcsid, bcopy -> memcpy, don't use the
...
register keyword, and -Wall cleaning.
Obtained from: similar changes in NetBSD
1997-08-07 21:42:17 +00:00
Steve Price
395f4bf0be
Remove remaining Lite1 stuff from the man page and uphold the
...
precedence in changing sccsid to rcsid as set by Phillippe
Charnier in his previous 100 or so commits.
pointed out by: Bruce Evans <bde@zeta.org.au>
1997-08-07 21:37:39 +00:00
Steve Price
5967604a1e
sccsid -> rcsid and fix some minor nits.
1997-08-07 21:33:47 +00:00
Steve Price
16cc192af1
Add Bruce's _NEW_VFSCONF flag to make this compile cleanly and
...
sccsid -> rcsid.
1997-08-07 21:31:00 +00:00
Steve Price
ab1733642c
#include <err.h> for err(3) call and replace extern reference to errno
...
with #include <errno.h>.
1997-08-07 15:41:51 +00:00
Steve Price
41cc862cc2
Remove #if(n)def BSD_4_4_LITE cruft and change sccsid to rcsid.
1997-08-07 15:37:47 +00:00
Steve Price
d46c1a60d3
Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.
1997-08-07 15:33:50 +00:00
Brian Somers
7ca215a690
Add [-DWMY] flags for date adjustment.
...
Discussed with: freebsd-hackers
1997-08-04 03:37:07 +00:00
Peter Wemm
e410bf2331
Fix "lstart". (Displays "19" rather than time)
...
PR: 4206
Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
1997-08-03 08:33:17 +00:00
Peter Wemm
940cca66e2
Kill #ifndef NEWVM etc. It affected a lot of other things besides
...
VM structure (eg: credentials etc) and it's highly unlikely we'll ever
get to see the "tainted" BSD<=4.3 VM code in public use. Although it
indicated the way some things used to be done, it obfuscates things too
much.
1997-08-03 08:25:01 +00:00
Bruce Evans
76b9a919c0
devname.c moved to libc before Lite1 and isn't in ps in Lite2.
1997-07-13 07:43:41 +00:00
Bruce Evans
0e63ce04b1
Bury this properly.
1997-07-01 21:38:49 +00:00
Bruce Evans
d9d6b4846b
Import this unwanted file from Lite-original so that it doesn't
...
get imported with Lite2 (there was only one missing file in src/bin,
other than tags files and obj links).
1997-07-01 21:34:30 +00:00
Philippe Charnier
41e964cb5d
Remove lines inside #ifdef 0/#endif.
1997-06-30 11:10:18 +00:00
Paul Traina
72b4ef7179
NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
...
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).
1997-06-29 06:03:42 +00:00
Philippe Charnier
601fc2b92f
Document the use of `ls -lo' to see flags.
...
Obtained from: OpenBSD.
1997-06-24 06:57:11 +00:00
Jordan K. Hubbard
f2d0ae8518
Back out previous fix - this bug's got diplomatic immunity as a registered
...
political issue.
1997-06-19 17:57:06 +00:00
Jordan K. Hubbard
fc0eef9f89
>Number: 3780
...
>Category: bin
>Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $?
PR: 3780
Submitted by: sanewo@ba2.so-net.or.jp
1997-06-19 15:14:01 +00:00
John Polstra
904058d0ad
Try again to explain the existence of lchown() and the absence of
...
lchmod() and lutimes().
1997-06-19 01:07:05 +00:00
John Polstra
b91ba2181a
Update some text to reflect the fact that symbolic links now have
...
owner and group attributes.
1997-06-14 18:44:03 +00:00
Andrey A. Chernov
ea1376dfbb
Now [^abc] means the same as [!abc] like bash and *csh already does
1997-06-06 23:04:33 +00:00
Philippe Charnier
3e23dae445
Typo in usage string. Looks like the man page now.
1997-06-06 06:48:35 +00:00
Philippe Charnier
ba858c2631
Err(3) was locally defined (for portability reasons). Use #ifdef 0/#endif
...
to hide this so libc is kept instead.
1997-06-06 06:46:27 +00:00
Philippe Charnier
43d30a79be
Correct usage string. Man page don't reflect reality for now.
1997-06-06 06:43:19 +00:00
Philippe Charnier
749d4bb649
Cosmetic change in usage string.
1997-06-06 06:40:06 +00:00
Philippe Charnier
714ec423a0
Do not use __progname.
1997-06-06 06:32:09 +00:00
Philippe Charnier
e8abeed581
Revert part of previous patch: Don't use __progname.
1997-06-04 06:27:30 +00:00
Philippe Charnier
faa4958c39
Revert part of previous patch: Don't use __progname.
1997-06-04 06:21:44 +00:00
Philippe Charnier
4c48180751
Add xref to lchown(2) and symlink(2).
...
Obtained from: {Net|Open}BSD
1997-06-03 06:27:44 +00:00
Philippe Charnier
7999ef2f38
Signal # NSIG (32) is invalid.
...
Obtained from: {Net|Open}BSD
1997-06-03 06:24:50 +00:00
Philippe Charnier
ec2427b335
/etc/netstart -> /etc/rc.network
...
Use __progname in usage string. Change usage string to match the man page.
1997-06-03 06:21:45 +00:00
Philippe Charnier
e2b60e721d
/etc/netstart -> /etc/rc.network
...
Add usage() and use __progname. Change usage string to match man page.
1997-06-03 06:19:04 +00:00
Masafumi Max NAKANE
f1fc6dfc9d
Add X-reference to ch(4).
1997-06-02 20:57:52 +00:00
Philippe Charnier
c263cc2165
Typo fix.
1997-06-02 06:40:08 +00:00
Philippe Charnier
063ad33a51
Typo (the the -> the).
1997-06-02 06:32:26 +00:00
Philippe Charnier
877155d0f5
Off by 1 adjustment. Properly NUL terminate after strncpy.
...
Obtained from: {Net|Open}BSD
1997-06-02 06:30:06 +00:00
Philippe Charnier
4600c7fb36
Off by 1 adjustment.
1997-06-02 06:27:00 +00:00
Philippe Charnier
73087c02bb
Remove unused variables. Suppress -Wall warnings. Check for potential buffer
...
overflow. Display available command in usage string.
Obtained from: {Net|Open}BSD
1997-06-02 06:25:19 +00:00
Julian Elischer
50dab48a5b
Submitted by: Whistle Communications (archie Cobbs)
...
These changes add the ability to specify that a UFS file/directory
cannot be unlinked. This is basically a scaled back version
of the IMMUTABLE flag. The reason is to allow an administrator
to create a directory hierarchy that a group of users
can arbitrarily add/delete files from, but that the hierarchy
itself is safe from removal by them.
If the NOUNLINK definition is set to 0
then this results in no change to what happens normally.
(and results in identical binary (in the kernel)).
It can be proven that if this bit is never set by the admin,
no new behaviour is introduced..
Several "good idea" comments from reviewers plus one grumble
about creeping featurism.
This code is in production in 2.2 based systems
1997-06-02 06:24:52 +00:00
Steve Price
00fc54b03c
Make sh(1) less aware of the bit fields returned by wait by
...
using the WIF* macros in sys/wait.h.
PR: bin/3668
Submitted by: dholland@eecs.harvard.edu
1997-05-24 21:04:55 +00:00
Steve Price
9e5a9c06d0
Remove y.tab.h from the beforedepend target. Also add a
...
rule that shows the dependency of arith_lex.[co] on y.tab.h.
Suggested by: Bruce Evans <bde@zeta.org.au>
1997-05-21 03:23:23 +00:00
Steve Price
b7059dd6df
Add explicit y.tab.h rule so that 'make depend clean all' does
...
not fail with an "don't know how to make y.tab.h" error.
1997-05-19 00:29:29 +00:00
Steve Price
e7a0b0244d
Use the __unused attribute where warranted.
1997-05-19 00:18:52 +00:00
Steve Price
f7a827cc92
Miscellaneous sorting and addition of rules for object files that
...
depend on generated headers.
Reviewed by: Bruce Evans <bde@zeta.org.au>
1997-05-19 00:16:27 +00:00
Joerg Wunsch
7e97db380c
Ensure string termination after strncpy().
...
PR: 2997
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1997-05-09 16:00:35 +00:00
Steve Price
ea76be72fe
Revise the section that explains how to protect parts of an $ENV script
...
from being executed in non-interactive mode.
Suggested and Reviewed by: Brian Somers <brian@freebsd.org>
1997-05-07 11:42:00 +00:00
Steve Price
2afa86e799
Don't source $ENV unless this is an interactive shell.
1997-05-05 03:45:17 +00:00
Bruce Evans
3e75bb9be1
Fixed overflow for attempts to seek to offsets > ULONG_MAX. See the
...
OpenBSD version for more complete fixes. E.g., to seek to offsets >
INT_MAX using a block size of 1, block numbers need to be off_t's
instead of u_long's.
1997-04-30 17:51:29 +00:00
Doug Rabson
e9dff5569a
Enable whiteout code since we now have the lite2 support for them.
1997-04-29 10:03:10 +00:00
Jordan K. Hubbard
6a2d726b82
Dynamically adjust size of displayed username to the longest username which
...
appears, not the longest _maximum_ username (this should probably also go
into 2.2, for the day when we bump up the username length there too).
Submitted-By: Terry Lambert <terry@lambert.org>
1997-04-29 05:26:05 +00:00
Steve Price
939a4c24e5
Change spelling of ECBDIC to EBCDIC. Closes PR #3402
...
Submitted by: h-nokubi@nmit.mt.nec.co.jp
1997-04-28 04:07:29 +00:00
Steve Price
5382d20cf1
Turn on the new type builtin.
1997-04-28 03:50:07 +00:00
Steve Price
96522b887c
Sync with NetBSD's revision 1.29 of this file.
...
Obtained from: NetBSD
1997-04-28 03:28:43 +00:00
Steve Price
f4eb55ba86
Remove an extra semicolon and nuke register keyword usage.
1997-04-28 03:27:12 +00:00
Steve Price
79f569479b
Fix redirection of unopened file descriptors and nuke register
...
keyword usage.
Obtained from: NetBSD
1997-04-28 03:25:13 +00:00
Steve Price
7920a31db6
Revert changes from rev 1.16 to 1.17 for now. Closes PR 2879.
1997-04-28 03:22:09 +00:00
Steve Price
ab72124fb4
mdoc-ify and cleanup UNIMPLEMENTED messages. Closes PR 2880.
1997-04-28 03:20:09 +00:00
Steve Price
115359949d
Reorder declarations slightly.
1997-04-28 03:17:51 +00:00
Steve Price
904a3dc819
Avoid a possible NULL pointer dereference, nuke register usage,
...
and remove an unnecessary reset.
Obtained from: NetBSD
1997-04-28 03:16:12 +00:00
Steve Price
7e461ef4f3
Nuke register keyword usage, #if -> #ifdef, and avoid void *
...
arithmetic.
Obtained from: NetBSD
1997-04-28 03:14:04 +00:00
Steve Price
4ca7fe3b96
Nuke register keyword usage, rename pread to preadfd, and open
...
input files FD_CLOEXEC.
Obtained from: NetBSD
1997-04-28 03:11:52 +00:00
Steve Price
62730a71b9
When NO_HISTORY is defined and the history command is used
...
show an error message.
Inspired by: NetBSD
1997-04-28 03:10:31 +00:00
Steve Price
76ad65f7f6
Add a type builtin and nuke register keyword usage.
...
Obtained from: NetBSD
1997-04-28 03:08:38 +00:00
Steve Price
afb033d5c4
Nuke register keyword usage and #if -> #ifdef.
...
Obtained from: NetBSD
1997-04-28 03:06:52 +00:00
Steve Price
61f4ddf420
Shamelessly pilfer most of NetBSD's Makefile so that the
...
problem with 'make -j n' and no .depend file goes away.
I think Bruce mentioned this somewhere on one of the
mailing lists.
Obtained from: NetBSD
1997-04-28 03:03:23 +00:00
John Polstra
3cc273e0be
When "-c" is specified, don't pad the command with spaces if it is
...
the last field on the line. "ps -axlc" was needlessly wrapping
around on 80-character windows.
1997-04-16 16:08:11 +00:00
Daniel O'Callaghan
ec50d24e74
Fix typo in comment; Document in an example that years beyond 1999
...
are handled; fix typo in same example.
1997-04-16 05:59:21 +00:00
Mike Pritchard
fa10160c65
Provide examples of how to remove file names that begin with
...
a dash in non-getopt implementations. E.g.:
rm /home/mpp/-filename
rm ./-filename
Requested by: bde
1997-04-09 05:04:43 +00:00
Mike Pritchard
fe83da2eec
Improve the wording in the NOTES section. Closes PR# 3223.
1997-04-08 20:27:48 +00:00
Mike Pritchard
1a8d9bc1f7
Fix several problems with mkdir:
...
1) Fix mkdir -p to exit with the proper exit status and issue an error
message if it was unable to create all of the specified directories
and they did not previously exist. POSIX says:
The mkdir utility shall exit with one of the following values:
0 All the specified directories were created successfully or the
-p option was specified and all the specified directories now
exist.
E.g.
% mkdir -p /var/mkdir
mkdir: /var/mkdir: Permission denied
% touch /tmp/file
% mkdir -p /tmp/file/dir
mkdir: /tmp/file: Not a directory
Previously the above examples would exit with a zero exit status
and no error message. Something like the following run as a
normal user will still not produce an error:
% id
uid=629(mpp) gid=629(mpp)....
% mkdir -p /usr/local/etc
% ls -ld /usr/local/etc
drwxr-xr-x 4 bin bin 512 Dec 26 14:55 /usr/local/etc/
2) Cleaned up the mode handling to be more efficient when multiple
directories are being created.
3) Fixed a problem where directories could be created with the wrong mode
if the the -p option was specified and the build() routine returned
and error. It would leave the umask set incorrectly at this point.
4) Removed an unused variable.
Closes PR# 2304.
1997-04-01 23:46:22 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Warner Losh
93ef08af3e
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:24:41 +00:00
David E. O'Brien
36f763ab3c
make usage() and SYNOPSIS agree with each other and add missing options
...
documented in the DESCRIPTION section.
1997-03-26 17:48:40 +00:00
Warner Losh
e38b50134c
Use mkstemp rather than mktemp to prevent races.
...
Obtained from: OpenBSD
1997-03-24 05:45:29 +00:00
Bruce Evans
a78192e3c3
Merged from Lite2. The -t option is now handled better. The only visible
...
change should be that the usage message now actually matches the man page.
1997-03-13 17:41:37 +00:00
Bruce Evans
611d129630
Merged from Lite2. The man page no longer attempts to list all the
...
vfs types.
Fixed ordering of FreeBSD `k' option in synopsis.
1997-03-13 17:32:39 +00:00
Bruce Evans
345304e00b
Merge from Lite2. Straightforward changes.
1997-03-13 17:29:08 +00:00
Mike Pritchard
e7030de81e
Correct the self reference in the description of the "tabs" option.
...
It should really refer to "oxtabs".
Obtained from: NetBSD-bugs mailing list PR# 3320
1997-03-12 15:59:22 +00:00
Guido van Rooij
e298ae5d12
Fix buffer overflow
1997-03-10 19:52:12 +00:00
Guido van Rooij
9408216e17
This is a funny one: df for a device that was not mounted used to fail
...
for root only.
1997-03-10 19:39:43 +00:00
Guido van Rooij
02289df91c
Fix buffer overflow (probably unexploitable).
1997-03-10 19:10:08 +00:00
Guido van Rooij
03001f577f
Make mv more robust. A race has been fixed, as well as an extra warning
...
added when sbits are cleared.
Fixes PR 1351 and 1377 (I hope).
1997-03-08 16:05:44 +00:00
Mike Pritchard
7680dae552
Typo fix.
1997-03-07 01:58:56 +00:00
Joerg Wunsch
a88f199c80
Acitvate chio(1).
1997-03-06 15:30:53 +00:00
Joerg Wunsch
224c8a5b9b
Import Jason Thorpe's contribution for an updated SCSI media changer
...
device (now, finally!).
1997-03-06 15:30:06 +00:00