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