Garrett Wollman
a067aeceed
Fix style bugs introduced by rev 1.28. No functional changes.
2001-07-16 15:49:58 +00:00
Dima Dorfman
b91c884fda
Set WARNS=2 on programs which compile cleanly.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-15 10:30:46 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
Ruslan Ermilov
caa2db3be9
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 10:04:09 +00:00
Dima Dorfman
70d51341bf
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Ruslan Ermilov
5521ff5a4d
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
2001-07-06 16:46:48 +00:00
Mike Heffner
616203938d
Fix warnings on alpha and re-enable WARNS=2.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-04 21:35:15 +00:00
Mike Heffner
28059d16ea
Argh...this isn't ready for WARNS=2 on alpha.
2001-07-03 03:34:42 +00:00
Mike Heffner
6c120f4628
Constify and lockdown with WARNS=2.
...
Submitted by: Mike Barcroft <mike@q9media.com>
MFC after: 2 weeks
2001-07-03 03:22:49 +00:00
Brian Feldman
9f3537caad
Use __unused for non-used variables.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-29 20:06:47 +00:00
Yaroslav Tykhiy
c8dac8d42c
Add a note on what happens if the "-p" option is specified
...
and a final directory already exists.
Reviewed by: freebsd-audit
MFC after: 5 days
2001-06-29 11:45:14 +00:00
Dima Dorfman
d164fef6d7
Back out previous commit: it doesn't help anything since write_file(),
...
which is also called from handle_hup(), uses stdio(3). Furthermore,
this means that calling exit(3) (via quit()) there is required to
flush the buffer write_file() was working on.
Submitted by: bde
2001-06-28 22:06:27 +00:00
David Malone
b82561452f
Use the correct printf format to print a long.
...
Approved by: cracauer
2001-06-26 11:11:30 +00:00
Dima Dorfman
7a507517de
Previous commit broke dd(1)'s I/O summary when it's terminated by a
...
signal. Fix it by adding an explicit call to summary() in terminate()
(it was previously called implicitly by exit() because summary() was
registered with atexit()). summary() is supposed to be signal-safe--
it handles SIGINFO almost exclusively--so this should be safe.
Submitted by: bde
2001-06-25 06:17:02 +00:00
Dima Dorfman
cafefe8c1b
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 23:04:23 +00:00
Dima Dorfman
e0e97f0aab
Don't call exit(3) from a signal handler.
...
Obtained from: OpenBSD
2001-06-24 01:55:17 +00:00
Dima Dorfman
a910f192bb
Remove duplicate words.
2001-06-24 01:34:38 +00:00
Dima Dorfman
982f5d88ff
WARNS= -> WARNS?=
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
Dag-Erling Smørgrav
26f6b0fbe8
Add more headers that are required with -fno-builtin (stdlib and strings)
2001-06-19 15:41:57 +00:00
Dag-Erling Smørgrav
847cd4bdd0
<stdlib.h> is needed for exit(3) when building with -fno-builtin.
2001-06-19 12:03:14 +00:00
Dima Dorfman
0f77799115
Xref zcat(1).
2001-06-18 20:00:39 +00:00
Tor Egge
564efb8fec
Check for the PS_SINTR flag in the right field of struct kinfo_proc
...
(ki_sflag).
2001-06-16 21:39:29 +00:00
Ruslan Ermilov
754e501c71
Removed wrong cast for fts_open()'s third argument.
2001-06-13 15:01:25 +00:00
Bruce Evans
e1d071dbfd
Removed the broken code which claimed to lose the set[ug]id bits in
...
the !(pflag && setfile()) case for regular files unless the copy is
owned by the same user and group. These bits have already been lost
(or never gained) in the correct way. The code didn't actually lose
the bits; it depended on them being lost already (apparently in all
cases) and attempted to gain them as necessary, but it often gained
them (and sometimes collateral bits) when wrong:
- pflag && setfile() == 0 case (i.e., for a successful cp -p):
setfile() copies all the attributes as correctly as possible (as
specified by POSIX), and we sometimes messed up the up the mode by
setting it again. Also, if the file is immutable, then setting the
mode again gave spurious errors (PR 20646).
- !pflag case. If the target is created, POSIX requires it to not
have the set[ug]id bits, but we sometimes copied them from the source.
If the target already exists, POSIX requires its mode to be unchanged,
but we sometimes copied the whole mode from the source.
PR: 20646
MFC after: 4 weeks
2001-06-11 13:57:54 +00:00
Andrey A. Chernov
4aeac9006a
Use new locale names
2001-06-10 15:28:39 +00:00
Ruslan Ermilov
856ebd68ae
Simplify, with the power of new mdoc(7).
2001-06-09 11:20:31 +00:00
Dima Dorfman
1adbddec6e
Add -j to the usage string.
...
PR: 27986
Submitted by: Cyrille Lefevre <clefevre@redirect.to>
2001-06-09 06:14:05 +00:00
Dima Dorfman
7fa34c1180
Correct a typo.
...
Submitted by: Alexey V. Neyman <avn@any.ru>
2001-06-08 04:41:21 +00:00
Jacques Vidrine
cc66540e0e
Add parens to get the cast that was meant in previous commit.
...
While we're at it, this file seems to prefer `unsigned int'
over `u_int', so go with that.
2001-06-05 21:55:57 +00:00
Matt Jacob
b3e8643ffa
Wrong. The size of size_t is *not* the same as the size of an integer.
...
MFC after: 2 weeks
2001-06-05 21:16:27 +00:00
Dima Dorfman
9076772fce
Correct a spelling nit (a -> an).
2001-06-04 23:33:02 +00:00
Jim Pirzyk
a25695c3a4
Added the -l option to df, so to be compatable with other unicies.
...
PR: bin/27240
Reviewed by: GAWollman
MFC after: 2 weeks
2001-06-04 23:07:15 +00:00
Dima Dorfman
6b8212280b
Mention the kern.ps_showallprocs sysctl.
...
PR: 24804
Submitted by: Mike Meyer <mwm@mired.org>
2001-06-02 04:02:36 +00:00
Ruslan Ermilov
0b381bf1fd
Remove vestiges of MFS.
2001-06-01 10:07:28 +00:00
Garance A Drosehn
0a315e79df
Fix how /bin/sh handles 'for' and 'case' statements when it is called to do
...
errexit (-e) processing. This solves a problem where 'make clean' would
fail with an unspecified error in certain automake-generated makefiles.
Reviewed by: no objections from -hackers...
MFC after: 2 weeks
2001-06-01 00:07:09 +00:00
Ruslan Ermilov
01b4e93eff
Fixed the bug from the previous revision.
...
``chown -h owner symlink'' did not set the symlink's owner
if the file the symlink points to already had that owner:
# ls -l alink afile
-rw-r--r-- 1 nobody ru 0 May 31 14:14 afile
lrwxr-xr-x 1 root ru 5 May 31 14:14 alink -> afile
# ./chown -h -v nobody alink
# ls -l alink afile
-rw-r--r-- 1 nobody ru 0 May 31 14:14 afile
lrwxr-xr-x 1 root ru 5 May 31 14:14 alink -> afile
Similarly for chgrp(1) and chmod(1).
2001-05-31 11:47:20 +00:00
Jim Pirzyk
af8dcd940f
Fixed two bugs, first not allowing '.' as a valid login name character
...
in okname() in util.c and second, returning != 0 when you do have an
error from okname in two places in rcp.c.
Thanks to Garrett for the POSIX defintion of valid login and group names.
PR: bin/25757
MFC after: 3 weeks
2001-05-30 16:19:13 +00:00
Warner Losh
92e331afed
Use PATH_MAX in preference in MAXPATHLEN.
2001-05-30 03:37:28 +00:00
Warner Losh
fe8dce6c66
Use PATH_MAX instead of MAXPATHLEN.
...
Also use sizeof(path) in preference to PATH_MAX.
2001-05-30 03:33:32 +00:00
Warner Losh
91a086eaf5
PATH_MAX in preference to MAXPATHLEN.
2001-05-30 03:28:29 +00:00
Warner Losh
5782e27253
Use PATH_MAX rather than MAXPATHLEN.
2001-05-30 03:27:07 +00:00
Warner Losh
c619c9a345
Minor comment fix
2001-05-30 03:25:45 +00:00
Warner Losh
422a64eac7
Use PATH_MAX in preference to MAXPATHLEN.
2001-05-29 18:20:36 +00:00
Warner Losh
9842e24c34
Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by one
...
error caused by the -1 being on the wrong side of the comparison.
This would not cause an overflow, as near as I can tell, because we
truncate later anyway. We'd just fail to get a diagnostic for 1024
and 1025 byte file names.
2001-05-29 18:03:14 +00:00
Warner Losh
c215688fd2
Use PATH_MAX in preference to MAXPATHLEN.
...
Also sort declarations per style(9) (big arrays come last) while I'm
in the area.
2001-05-29 17:27:56 +00:00
Ruslan Ermilov
abb1dad139
Change noop option -h to do the real work. Now mode of symbolic link
...
is changed if -h option is given.
Requested by: bde
Obtained from: NetBSD (code part)
2001-05-28 15:31:11 +00:00
Ruslan Ermilov
8e46d9c279
Follow symbolic links named as command line arguments if run without -R.
...
This is required by symlink(7), ``Commands not traversing a file tree''
subsection, third paragraph:
: It is important to realize that this rule includes commands which may
: optionally traverse file trees, e.g. the command ``chown file'' is
: included in this rule, while the command ``chown -R file'' is not.
For chown(8) and chgrp(1), this is also is compliance with the latest
POSIX 1003.1-200x draft.
MFC after: 1 week
2001-05-28 12:58:10 +00:00
Kris Kennaway
3d06e95d35
Fix warnings to compile with WARNS=2 on i386 and alpha
...
Reviewed by: bde
2001-05-26 20:45:25 +00:00
Ruslan Ermilov
95a09b0557
Make it clear that -P is the default.
...
PR: docs/27629
2001-05-25 07:32:58 +00:00
Dima Dorfman
8fa5674d69
Spelling police: insure -> ensure
...
PR: 27600
Submitted by: Iain Templeton <iain@ugh.net.au>
2001-05-24 03:52:32 +00:00
Kris Kennaway
bfa27aef55
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 06:21:12 +00:00
Kris Kennaway
4ca63b7f7e
Silence WARNS=2 and BDECFLAGS except for stupid mode_t warnings.
...
MFC after: 1 week
2001-05-20 05:49:20 +00:00
Kris Kennaway
22eb6dd432
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 05:37:46 +00:00
Kris Kennaway
6dca651581
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC After: 1 week
2001-05-20 05:33:53 +00:00
Kris Kennaway
7f204f9b36
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 05:25:37 +00:00
Kris Kennaway
0a26b6bbc0
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC After: 1 week
2001-05-20 05:13:21 +00:00
Kris Kennaway
692ad02bcd
Silence WARNS=2 and BDECFLAGS on alpha and i386
...
MFC after: 1 week
2001-05-20 05:10:04 +00:00
Kris Kennaway
52a2fc64fe
Silence WARNS=2 and BDECFLAGS on i386 and alpha.
...
MFC After: 1 week
2001-05-20 05:01:48 +00:00
Kris Kennaway
29e13abe4c
Silence WARNS=2 and BDECFLAGS on alpha and i386, except for mode_t
...
warnings.
MFC after: 1 week
2001-05-20 05:00:16 +00:00
Kris Kennaway
97dbc8f347
Silence WARNS=2 and BDECFLAGS on i386 and alpha
...
MFC After: 1 week
2001-05-20 04:54:15 +00:00
Kris Kennaway
961a739a43
Silence WARNS=2 and BDECFLAGS on the i386 and alpha
...
MFC After: 1 week
2001-05-20 04:52:37 +00:00
Kris Kennaway
28bf320298
Silence warnings on alpha. Unfortunately we can't add WARNS to this
...
because of that stupid mode_t warning bug.
MFC After: 1 week
2001-05-20 04:47:55 +00:00
Kris Kennaway
0c37bb2120
Make this pass WARNS=2 and BDECFLAGS
2001-05-20 04:37:28 +00:00
Kris Kennaway
a95a13bb8f
BDECFLAGS cleanup (modulo long long issues). Add WARNS. Tested on alpha.
...
Reviewed by: the great man himself (except alpha cleanups)
2001-05-20 04:12:30 +00:00
Kris Kennaway
925d09e9ab
Make this compile with WARNS=2
2001-05-20 03:24:24 +00:00
Ruslan Ermilov
3ab9a9d0e0
Removed -I${.CURDIR}/.../sys from CFLAGS.
2001-05-18 13:41:42 +00:00
Kris Kennaway
5e5a566754
BDECFLAGS cleanup
2001-05-18 11:04:19 +00:00
Ruslan Ermilov
10d865720b
Fix an off-by-hour bug when crossing Daylight Saving Time boundary.
...
PR: bin/27399
Submitted by: "Crist J. Clark" <crist.clark@globalstar.com>
MFC after: 3 days
2001-05-17 15:20:15 +00:00
Warner Losh
34f9c106b9
Migrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy the
...
strings.
2001-05-16 19:10:40 +00:00
Kris Kennaway
f3895a821a
Fix operation of df on unmounted filesystems, and add the ability to run df
...
on unmounted non-UFS filesystem using '-t'
Submitted by: bde
2001-05-09 08:44:15 +00:00
Ruslan Ermilov
a0eb755a9b
mdoc(7) police: fix markup, rename and reorder some sections.
2001-05-08 08:12:53 +00:00
Ruslan Ermilov
72272f83b2
mdoc(7) police: sort xrefs.
2001-05-08 07:19:19 +00:00
Kris Kennaway
e78527c437
GC some dead code relating to running df on unmounted block devices,
...
and remove the setgid operator bit from the installed binary: if you want
to view free disk space on an unmounted device, you should have read
permissions to access it.
Reviewed by: phk
2001-05-08 06:58:25 +00:00
Kris Kennaway
b1787dec81
Sync up with OpenBSD. Too many changes to note, but the major features
...
are:
* Implement cpio compatibility mode when pax is invoked as cpio
* Extend tar compatibility mode to cover many of the GNU tar single-letter
options (bzip2 mode, aka -y/-j is not present in OpenBSD). When
invoked as tar, pax is now full-featured enough for use by the ports
collection to extract distfiles and create packages.
* Many bug fixes to the operation of pax and the tar compatibility modes
* Code fixes for things like correct string buffer termination.
I tried to preserve existing FreeBSD fixes to this utility; please let me
know if I have inadvertently spammed something.
2001-05-08 06:19:06 +00:00
Kris Kennaway
1192d531bf
Add -z flag to pax to allow gzipping of archive output. Add -z and -Z (gzip
...
and compress) to pax when used in tar mode (invoked as 'tar') for
compatibility with GNU tar.
bzip2 functionality for further GNU tar compatibility will be added at a
later date.
Note in the manpage that -z is non-standard.
Obtained from: OpenBSD
Reviewed by: -hackers
MFC after: 2 weeks
2001-05-05 01:10:13 +00:00
Mark Murray
25bba4f6ad
Depollute headers now that the VM headers DTRT.
2001-05-03 11:49:44 +00:00
Chris D. Faulhaber
0051154b1c
Correct assignment of the resulting ACL allowing the mask entry to
...
be properly set.
Obtained from: TrustedBSD Project
2001-05-03 03:17:44 +00:00
Mark Murray
325a83b456
Compensate for header dethreading.
2001-05-01 08:39:23 +00:00
Dima Dorfman
9434a1c780
Document "chdir" builtin.
2001-04-28 02:13:58 +00:00
Ruslan Ermilov
41f6d28423
Fixed a typo.
2001-04-27 08:12:45 +00:00
Maxim Sobolev
1d7f44ef26
Put a note that -h' and
-n' is non-standard and provided only for
...
compatibility purposes.
Prompted by: ru
2001-04-27 08:00:19 +00:00
Maxim Sobolev
c9e7c66776
Bring in -h' compatability option and its alias
-n' to match NetBSD and GNU
...
semantics.
style(9) Reviewed by:
Obtained from: NetBSD
2001-04-26 17:15:57 +00:00
Kris Kennaway
d12dd1a1b5
Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.
2001-04-26 09:22:28 +00:00
Kris Kennaway
778766fe4d
Reduce diffs with OpenBSD:
...
#if __STDC__ -> #ifdef __STDC__
pax_warn() -> paxwarn()
sys_warn() -> syswarn()
(foo *)NULL -> NULL
bcopy -> memmove()/memcpy()
bzero -> memset()
Typo fixes
sprintf() -> snprintf()
rindex() -> strrchr()
index() -> strchr()
sys_errlist[] -> strerror()
Obtained from: OpenBSD
2001-04-26 08:37:00 +00:00
Kris Kennaway
ffbef1cd72
Use mkstemp() for secure tempfile creation instead of tempnam()
...
Obtained from: OpenBSD
Reviewed by: mikeh
2001-04-26 07:32:27 +00:00
Chris D. Faulhaber
0f6263079e
o Separate acl_t into internal and external representations as
...
required by POSIX.1e. This maintains the current 'struct acl'
in the kernel while providing the generic external acl_t
interface required to complete the ACL editing library.
o Add the acl_get_entry() function.
o Convert the existing ACL utilities, getfacl and setfacl, to
fully make use of the ACL editing library.
Obtained from: TrustedBSD Project
2001-04-24 22:45:41 +00:00
Ruslan Ermilov
eb0838029f
mdoc(7) police: normalize .Nd.
2001-04-18 15:54:10 +00:00
Kris Kennaway
a2e73040f4
-Wnon-const-format sweep: make format strings const char *'s, add
...
__printflike()/__printf0like() to function prototypes, as appropriate.
Reviewed by: bde, -audit
2001-04-17 07:46:38 +00:00
Chris D. Faulhaber
7a832d4392
Convert getfacl to the ACL editing library functions. getfacl should
...
now compile/work on any POSIX.1e-compliant implementation (also tested
against the current Linux patches).
Review by: rwatson
Obtained from: TrustedBSD Project
2001-04-13 19:24:28 +00:00
Brian Somers
cdf6f0b1ae
Correct some markup
...
Submitted by: bde
2001-04-12 20:04:54 +00:00
Brian Somers
ff1b168b6e
Introduce -osid and -otsid
...
Submitted by: dd
2001-04-11 22:42:54 +00:00
Chris D. Faulhaber
fb1af1f2bf
Correct the following defines to match the POSIX.1e spec:
...
ACL_PERM_EXEC -> ACL_EXECUTE
ACL_PERM_READ -> ACL_READ
ACL_PERM_WRITE -> ACL_WRITE
Obtained from: TrustedBSD
2001-04-11 02:19:01 +00:00
Brian Somers
b785bd7d3b
`|'' should be more binding than
`!'' so that this isn't broken:
...
if ! echo bla | wc -c ; then
echo broken
fi
Obtained from: NetBSD
2001-04-09 12:46:19 +00:00
Brian Somers
48b2c871df
Remove tsess for now.
...
This (and sess) may come back shortly.
2001-04-07 11:22:26 +00:00
Brian Somers
86aca2117b
Update documentation in line with what the code does
...
PR: 25435
Submitted by: dd
Forgotten by: mckusick
2001-04-07 11:16:41 +00:00
Brian Somers
52f8369e69
The sess column went away last December with v1.26 of keyword.c
...
Remove it from ``jfmt''.
Forgotten by: mckusick
2001-04-07 02:53:35 +00:00
Thomas Moestl
843f999ce2
setfacl and getfacl no longer need to link against libposix1e, since it
...
has been integrated into libc.
Approved by: rwatson
Obtained from: TrustedBSD Project
2001-04-04 18:20:08 +00:00
Brian Somers
6c0bde79a8
A much better (more correct) fix for handling ``!'' characters
...
Obtained from: NetBSD
2001-04-04 10:11:43 +00:00
Brian Somers
51a9b1c281
Handle ``!'' characters when they appear as second and subsequent
...
parts of an && or || expression.
This makes this expression work as expected:
if true && ! false; then echo yes; fi
2001-04-04 09:30:50 +00:00
Ruslan Ermilov
3c4869d927
Drop support for -DRELEASE_BUILD_FIXIT and -DCRUNCHED_BINARY in
...
${CFLAGS}. The only supported method thus is -DRELEASE_CRUNCH.
2001-04-03 13:34:35 +00:00
Ben Smithurst
e8145c5440
Remove a comment which seemed to confuse makewhatis:
...
ben@freefall:~$ whatis ed
ed(1), -(1) - ed, red text editor
PR: 25164
Submitted by: Rich Morin <rdm@cfcl.com>
2001-03-29 01:25:06 +00:00
Ruslan Ermilov
6c7d684cfe
MAN[1-9] -> MAN.
2001-03-27 10:03:10 +00:00
Bill Fenner
57c6e666cc
Fix error reporting of delayed send errors.
2001-03-26 16:18:01 +00:00
Ruslan Ermilov
03035079c0
mdoc(7) police: fix markup and some spelling.
2001-03-23 08:14:27 +00:00
Andrey A. Chernov
8234eb2519
Silence minor cc warning
2001-03-21 15:14:47 +00:00
Andrey A. Chernov
5f94e68da9
Use nl_langinfo instead of %Ef
2001-03-21 13:33:09 +00:00
Andrey A. Chernov
28fd017a11
Use nl_langinfo instead of %Ef
2001-03-21 13:21:20 +00:00
Chris D. Faulhaber
2eacd2671d
Remove extra CFLAGS
...
Add DPADD
Submitted by: bde
2001-03-20 02:55:43 +00:00
Chris D. Faulhaber
7ff9edbb0b
Remove extra CFLAGS and redundant SRCS
...
Add DPADD
Submitted by: bde
2001-03-20 02:54:41 +00:00
Chris D. Faulhaber
6371776c8e
Remove 'NOSHARED=yes' (../Makefile.inc already sets this)
2001-03-19 21:18:48 +00:00
Robert Watson
c534fd78eb
o Missed in addition of setfacl.h in setfacl(1)
2001-03-19 18:59:36 +00:00
Robert Watson
09ef2e46f9
o Missed in prior commit: getfacl(1) Makefile
2001-03-19 18:58:16 +00:00
Robert Watson
51d0ad314f
o Enable getfacl(1) and setfacl(1)
...
Obtained from: TrustedBSD Project
2001-03-19 18:09:56 +00:00
Robert Watson
43960f159d
o POSIX.2c Userland tool support for POSIX.1e ACLs -- getfacl retrieves ACLs
...
from files and directories, and setfacl sets ACLs on files and directories.
Submitted by: jedgar
Obtained from: TrustedBSD Project
2001-03-19 18:09:25 +00:00
Andrey A. Chernov
cb1e4365eb
DIS -> ISO
2001-03-17 20:15:21 +00:00
Dima Dorfman
bfaf55a48d
Make it clear that the -v option doesn't actually set the date.
...
PR: 24773
Approved by: nik
2001-03-16 02:20:24 +00:00
Jeroen Ruigrok van der Werven
a247b994aa
Revert this file back to how it was in the STABLE branch, this means:
...
put greek and ja in the correct alphabetical place in the SUBDIR line.
2001-03-05 09:50:43 +00:00
Kris Kennaway
27540537e8
Switch from using rand() or random() to a stronger, more appropriate PRNG
...
(random() or arc4random())
Reviewed by: bde
2001-03-05 02:15:38 +00:00
Assar Westerlund
3617ddfc33
implement OCRNL, ONOCR, and ONLRET
...
Obtained from: NetBSD
2001-03-04 06:04:50 +00:00
Andrey A. Chernov
f59105eedb
Small optimization: set use_ampm only when needed
2001-03-03 01:46:58 +00:00
Andrey A. Chernov
080175194f
Use AM/PM time only when available in locale
2001-03-02 23:53:36 +00:00
Ruslan Ermilov
7a6be91366
POSIX wrote:
...
: LC_TIME This variable shall determine the format and
: contents of date and time strings when the -v
: option is specified.
Developers took this wrong. LC_TIME specifies the locale
name, not the ``format'' argument of strftime().
Oops:
pax -w -f /tmp/foo /dev/null
LC_TIME=de_DE.ISO_8859-1 pax -v -f /tmp/foo
2001-03-02 16:19:49 +00:00
Ben Smithurst
02c724b4fb
The 'X' permission symbol is specified by POSIX.2, so don't say that it
...
isn't.
Obtained from: NetBSD
Confirmed by: ru, wollman
2001-03-01 19:03:01 +00:00
Ruslan Ermilov
c2d03ea879
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
2001-02-28 17:38:53 +00:00
David E. O'Brien
3f83ed9d1c
Fix style bug I introduced with rev 1.13 (rcsid after includes).
...
Along with CSRG id lossage in rev 1.11.
Submitted by: bde
2001-02-28 11:06:04 +00:00
David E. O'Brien
f0ba626a0d
Add rcsid.
2001-02-27 10:50:06 +00:00
Ruslan Ermilov
18e73fc02b
Move the realpath(1) birth day from FreeBSD 5.0 to FreeBSD 4.3.
...
Submitted by: "Stephen L. Palmer" <slpalmer@mail.com>
Forgotten by: asmodai
2001-02-22 07:29:40 +00:00
Jonathan Lemon
f6213d478d
Do not coredump if no options are supplied. (ps -o,)
...
Submitted by: rgrimes
Obtained from: NetBSD
2001-02-14 18:54:34 +00:00
Ruslan Ermilov
47dec78170
mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.
2001-02-13 09:56:35 +00:00
Jake Burkholder
4c85452ba9
Catch up to new priority interface.
2001-02-12 00:21:38 +00:00
Andrey A. Chernov
8073a93c76
Use decimal point from locale
2001-02-11 02:25:56 +00:00
Jeroen Ruigrok van der Werven
9a01d32bfd
Fix typo: seperate -> separate.
...
Seperate does not exist in the english language.
Submitted to look at by: kris
2001-02-06 10:39:38 +00:00
Martin Cracauer
adce2a1b4b
Fix child's SIGSTOP behaviour in scripts.
...
When a child is receiving SIGSTOP, eval continues with the next
command. While that is correct for the interactive case (Control-Z
and you get the prompt back), it is wrong for a shellscript, which
just continues with the next command, never again waiting for the
stopped child. Noted when childs from cronjobs were stopped, just to
make more processes (by wosch).
The fix is not to return from a job wait when the wait returned for a
stopped child while in non-interactive mode. This bahaviour seems to
be what bash2 and ksh implement. I tested for correct behaviour for
finnaly killing the child with and without forgrounding it first.
When not foregrouding before killing, the shell continues with the
script, which is what the other shells do as well.
Reviewed by: Silence on -current
2001-02-06 10:29:34 +00:00
Stephen McKay
b931f9b350
In the hope of saving others from hours of tedious recovery work,
...
document that cp still isn't very useful for recursive copies even
with the -R flag. This is because hard links are broken by cp.
2001-02-04 02:02:38 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
John Polstra
1718c8b735
Note that rmdir(2) does not follow symbolic links.
2001-01-24 23:49:59 +00:00
John Baldwin
e0aa5ab718
- Catch up to new proc flags.
2001-01-24 12:59:50 +00:00
Ben Smithurst
23c326d124
Document the restrictions on changing times in high securelevels.
...
PR: 23502
Submitted by: Robert Boyd <rboyd@pokerspot.com>
2001-01-17 21:27:54 +00:00
Andrey A. Chernov
24b01c2bd0
Activate Greek message catalog
2001-01-17 16:54:43 +00:00
Ruslan Ermilov
32f6256a49
Prepare for mdoc(7)NG.
2001-01-16 09:08:22 +00:00
Alfred Perlstein
c51117f58d
Special case the error reporting when errno is ENOTDIR or ENOENT.
...
This makes "mkdir /nonexistant/foo" complain that /nonexistant
doesn't exist rather than /nonexistant/foo which doesn't make much
sense.
Submitted (in a different form) by: W.H.Scholten <whs@xs4all.nl>
2001-01-14 12:08:50 +00:00
Tim Vanderhoek
00dfd8785a
grammar gnit: "relationships (plural) _are_ complex"
2000-12-28 17:17:49 +00:00
Ruslan Ermilov
e30b1c64e7
mdoc(7) police: simplify construct.
2000-12-21 15:31:28 +00:00
David E. O'Brien
b6f80a8e3d
Display pathname of item being rm'ed.
...
Submitted by: Peter Pentchev <roam@orbitel.bg>
2000-12-20 08:31:26 +00:00
Ruslan Ermilov
9b88faecd3
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
Ruslan Ermilov
14b96e474c
Prepare for mdoc(7)NG.
2000-12-19 15:30:26 +00:00
Ruslan Ermilov
1586940ea5
Prepare for mdoc(7)NG.
2000-12-18 14:48:17 +00:00
Kirk McKusick
640b0e0895
Restore the rss (-u) keyword that got deleted in my somewhat over-zealous
...
cleanup effort.
Submitted by: Mark Peek <mark@whistle.com>
2000-12-16 02:01:05 +00:00