Commit Graph

54 Commits

Author SHA1 Message Date
hubertf 2d4e6a01c0 the case of waitpid() returning an error was already tested, and errno
printed for that case. the tests for the return code don't have errno
set, so don't try to print it.

By Liam J. Foy <liamfoy sepulcrum.org>, posted to tech-userlevel@.
2005-06-03 13:55:04 +00:00
christos ea369b9669 Deal with RESCUEDIR 2004-08-19 22:25:49 +00:00
jschauma ad8530d1eb remove unused code left from printescaped() backput as pointed out by Jeff
Ito in PR bin/23969 and PR bin/23970.
2004-01-04 16:04:18 +00:00
jschauma 6a75fbb636 Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
2003-09-14 19:20:16 +00:00
itojun e1e0321817 use bounded string op 2003-08-13 02:51:20 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
jschauma 458ed23412 As discusses a little while back on tech-userlevel:
If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
2003-08-04 22:31:21 +00:00
itojun 6950184129 use bounded string op 2003-07-13 08:23:39 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
jdolecek ef022d1b15 insert a paragraph break between the option list and following text 2003-01-19 10:03:28 +00:00
wiz 42ff734863 Restore word that got removed when -v was added. 2002-12-28 21:16:49 +00:00
wiz 5673b28631 Whitespace nits. 2002-12-28 21:15:24 +00:00
jrf 1f6c14f0d6 Added verbose extension and updated manual pages. Changes approved by Klaus Klein. 2002-12-26 21:37:17 +00:00
lukem 764c86e2b1 don't need -lutil here 2002-11-30 03:16:14 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz bd4e745f5b Drop unnecessary .Pps. 2001-12-20 20:01:55 +00:00
wiz 3ebcdc5e43 Whitespace nits. 2001-12-20 19:31:48 +00:00
wiz 263be60d13 ANSIfy, KNF, use [gs]etprogname. By Petri Koistinen, slightly modified by me. 2001-09-16 21:53:55 +00:00
wiz 3f9984fc90 `existent', not `existant' 2001-06-19 13:42:07 +00:00
kleink 2caf6aacdd For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
2000-09-04 07:30:07 +00:00
hubertf 1cb54f68ac Add 'RETURN VALUE' section header. 2000-08-28 02:11:04 +00:00
darrenr 79a28eb80d don't emit a warning message if fchflags() returns EOPNOTSUPP 2000-07-16 04:49:55 +00:00
darrenr e6cda25dbf From FreeBSD:
To make inherit file flags when mv(1) moves file between directories
on different file systems.
2000-07-15 15:11:04 +00:00
jdolecek 73db9c4db7 fix typo 1999-12-14 17:30:11 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
christos 6db3689f29 make this compile on non bsd-4.4 systems 1999-08-16 07:49:45 +00:00
sommerfeld bba687e947 Fix PR8073:
bogons in mv(1) man page.
	don't bother prompting for mv -i if source doesn't exist
1999-08-02 01:42:08 +00:00
christos 4a08c86b03 use utimes, if we don't have futimes. 1998-11-04 18:56:53 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft 29bf463dcb Delint. 1998-07-28 04:01:03 +00:00
ross e86e483504 s/cp -pr/cp -PRp/ in the discussion of the cross-device cp(1) operation. 1998-04-20 05:43:30 +00:00
enami c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
mycroft 9db82206c3 If we fail to set ownership, turn off SUID and SGID bits (like cp(1)).
Use futimes(2), and actually fill in the microsecond field.
1997-10-19 12:55:07 +00:00
mikel 3b834bbe6e use lstat() instead of stat() when determining type of 'from' file;
from John F. Woods in PR bin/4288.
Also fixed a similar check of the 'to' file, so we don't try to
  rmdir() symlinks to directories; and fixed typo in a comment.
1997-10-19 02:17:37 +00:00
kleink 87e2501dd8 * Initialize native locale on startup.
* When using the form "mv src ... dir", strip off trailing slashes from
  `src' arguments to provide 1003.2 semantics.
1997-10-08 11:26:04 +00:00
hubertf fa8f97975b Be silend if owner can't be set on cross-device-moved.
Fixes PR bin/1223 by John F. Woods <jfw@jfwhome.funhouse.com>.
1997-10-07 02:06:37 +00:00
kleink 1067b3ea11 Suppress stray space character; from maximum entropy in PR bin/4049. 1997-08-27 17:27:13 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos d91f759e44 include <pwd.h> and <grp.h> to bring prototypes into scope. 1997-07-20 19:20:01 +00:00
christos 3c953c7e32 Fix compiler warnings.
Add WARNS=1
1997-07-20 19:07:49 +00:00
tls 3e254367af kill use of register 1997-01-09 16:44:06 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
jtc e04c8e0705 Fix spelling errors. 1994-01-11 02:10:48 +00:00
jtc 509eb263b9 Check user's response against both 'Y' and 'y' --- this is really supposed
to be a locale specific regular expression.  This change hard codes POSIX
locale behavior, and will be replaced by a locale independant equivalent
as soon as locales are fully implemented.
1993-11-09 18:57:54 +00:00
jtc c4f90bdd40 Bring even closer to POSIX.2 compliance. Add comments documenting
the steps outlined in the standards.  Steps 1-5 look good, there
may be some work outstanding in the final Step 6.
1993-09-22 21:39:19 +00:00
jtc b141a3ac17 Bring closer to POSIX.2 compliance. The latter of any -i or -f options
is the one that is actually effective.
1993-09-22 00:34:25 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00