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