summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the bug from the previous revision.ru2001-05-311-1/+1
| | | | | | | | | | | | | | | ``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).
* Fixed two bugs, first not allowing '.' as a valid login name characterpirzyk2001-05-302-3/+7
| | | | | | | | | | 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
* Use PATH_MAX in preference in MAXPATHLEN.imp2001-05-301-1/+2
|
* Use PATH_MAX instead of MAXPATHLEN.imp2001-05-301-3/+4
| | | | Also use sizeof(path) in preference to PATH_MAX.
* PATH_MAX in preference to MAXPATHLEN.imp2001-05-301-1/+2
|
* Use PATH_MAX rather than MAXPATHLEN.imp2001-05-301-1/+1
|
* Minor comment fiximp2001-05-301-1/+1
|
* Use PATH_MAX in preference to MAXPATHLEN.imp2001-05-291-3/+4
|
* Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by oneimp2001-05-293-16/+11
| | | | | | | 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.
* Use PATH_MAX in preference to MAXPATHLEN.imp2001-05-291-1/+2
| | | | | Also sort declarations per style(9) (big arrays come last) while I'm in the area.
* Change noop option -h to do the real work. Now mode of symbolic linkru2001-05-282-20/+22
| | | | | | | is changed if -h option is given. Requested by: bde Obtained from: NetBSD (code part)
* Follow symbolic links named as command line arguments if run without -R.ru2001-05-282-4/+6
| | | | | | | | | | | | | | 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
* Fix warnings to compile with WARNS=2 on i386 and alphakris2001-05-262-27/+43
| | | | Reviewed by: bde
* Make it clear that -P is the default.ru2001-05-253-0/+3
| | | | PR: docs/27629
* Spelling police: insure -> ensuredd2001-05-241-1/+1
| | | | | PR: 27600 Submitted by: Iain Templeton <iain@ugh.net.au>
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-2/+3
| | | | MFC after: 1 week
* Silence WARNS=2 and BDECFLAGS except for stupid mode_t warnings.kris2001-05-201-0/+1
| | | | MFC after: 1 week
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-0/+4
| | | | MFC after: 1 week
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-15/+19
| | | | MFC After: 1 week
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-2/+4
| | | | MFC after: 1 week
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-205-2/+7
| | | | MFC After: 1 week
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-0/+3
| | | | MFC after: 1 week
* Silence WARNS=2 and BDECFLAGS on i386 and alpha.kris2001-05-202-1/+4
| | | | MFC After: 1 week
* Silence WARNS=2 and BDECFLAGS on alpha and i386, except for mode_tkris2001-05-201-7/+8
| | | | | | warnings. MFC after: 1 week
* Silence WARNS=2 and BDECFLAGS on i386 and alphakris2001-05-204-6/+12
| | | | MFC After: 1 week
* Silence WARNS=2 and BDECFLAGS on the i386 and alphakris2001-05-202-1/+4
| | | | MFC After: 1 week
* Silence warnings on alpha. Unfortunately we can't add WARNS to thiskris2001-05-201-1/+2
| | | | | | because of that stupid mode_t warning bug. MFC After: 1 week
* Make this pass WARNS=2 and BDECFLAGSkris2001-05-204-3/+10
|
* BDECFLAGS cleanup (modulo long long issues). Add WARNS. Tested on alpha.kris2001-05-202-14/+17
| | | | Reviewed by: the great man himself (except alpha cleanups)
* Make this compile with WARNS=2kris2001-05-202-0/+3
|
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-182-3/+1
|
* BDECFLAGS cleanupkris2001-05-187-23/+32
|
* Fix an off-by-hour bug when crossing Daylight Saving Time boundary.ru2001-05-171-0/+3
| | | | | | PR: bin/27399 Submitted by: "Crist J. Clark" <crist.clark@globalstar.com> MFC after: 3 days
* Migrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy theimp2001-05-163-5/+6
| | | | strings.
* Fix operation of df on unmounted filesystems, and add the ability to run dfkris2001-05-091-4/+38
| | | | | | on unmounted non-UFS filesystem using '-t' Submitted by: bde
* mdoc(7) police: fix markup, rename and reorder some sections.ru2001-05-082-78/+104
|
* mdoc(7) police: sort xrefs.ru2001-05-081-2/+2
|
* GC some dead code relating to running df on unmounted block devices,kris2001-05-082-37/+1
| | | | | | | | 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
* Sync up with OpenBSD. Too many changes to note, but the major featureskris2001-05-0821-209/+1562
| | | | | | | | | | | | | | 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.
* Add -z flag to pax to allow gzipping of archive output. Add -z and -Z (gzipkris2001-05-055-13/+107
| | | | | | | | | | | | | | 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
* Depollute headers now that the VM headers DTRT.markm2001-05-033-3/+0
|
* Correct assignment of the resulting ACL allowing the mask entry tojedgar2001-05-031-1/+1
| | | | | | be properly set. Obtained from: TrustedBSD Project
* Compensate for header dethreading.markm2001-05-013-0/+3
|
* Document "chdir" builtin.dd2001-04-281-0/+4
|
* Fixed a typo.ru2001-04-271-1/+1
|
* Put a note that `-h' and `-n' is non-standard and provided only forsobomax2001-04-271-1/+6
| | | | | | compatibility purposes. Prompted by: ru
* Bring in `-h' compatability option and its alias `-n' to match NetBSD and GNUsobomax2001-04-262-14/+53
| | | | | | | semantics. style(9) Reviewed by: Obtained from: NetBSD
* Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.kris2001-04-2610-80/+82
|
* Reduce diffs with OpenBSD:kris2001-04-2617-466/+468
| | | | | | | | | | | | | | | | #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
* Use mkstemp() for secure tempfile creation instead of tempnam()kris2001-04-264-17/+39
| | | | | Obtained from: OpenBSD Reviewed by: mikeh
OpenPOWER on IntegriCloud