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
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
jrf
1f6c14f0d6
Added verbose extension and updated manual pages. Changes approved by Klaus Klein.
2002-12-26 21:37:17 +00:00
wiz
263be60d13
ANSIfy, KNF, use [gs]etprogname. By Petri Koistinen, slightly modified by me.
2001-09-16 21:53:55 +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
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
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
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
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00