dd
0f445ae1d8
Set WARNS=2 on programs which compile cleanly.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-15 10:30:46 +00:00
dd
a145482cf6
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
brian
8636b161b3
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
imp
567b09a17d
Use PATH_MAX in preference to MAXPATHLEN.
2001-05-29 18:20:36 +00:00
kris
a9591ec95f
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
ru
be1f850a8f
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 11:39:41 +00:00
sada
07d662531c
Don't emit a warning message if fchflags() returns EOPNOTSUPP
...
Requested by: FUJISHIMA Satsuki <k5@cheerful.com>
Obtained from: OpenBSD
2000-07-20 18:30:00 +00:00
sada
d2b1e4c711
To make inherit file flags when mv(1) moves file between directories
...
on different file systems.
PR: bin/12375
Submitted by: Takashi SHIRAI <shirai@nintendo.co.jp>
No response by: steve
No problem with: building 5-current world
2000-07-15 14:59:02 +00:00
dwmalone
7339539ac5
Use lstat(2) instead of stat(2) when deciding if we should fastcopy
...
a file. This fixes moving symlinks across partitions.
PR: 17847
Reviewed by: bde
2000-07-11 18:01:42 +00:00
joe
e58bf0a22e
Removed bogus dependancy on libutil.
...
Noticed by: bde
2000-01-01 15:40:40 +00:00
mharo
5012b180b8
mention that -v is non-standard
...
Reviewed-by: obrien
1999-09-04 03:33:18 +00:00
mharo
92582195da
add verbose flag
1999-08-29 08:21:16 +00:00
peter
66312e4a8d
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
kris
713dd62834
Various spelling/formatting changes.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-05-08 10:22:15 +00:00
des
3ca80efd3a
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
...
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
1998-10-13 14:52:33 +00:00
bde
7368b18e56
Fixed printf format errors.
1998-06-28 21:00:04 +00:00
imp
bfab679fdd
Make sure we don't overflow the path buffer. Exit if we do.
...
Obtained from or inspired by: A similar change in OpenBSD by theo
1998-06-09 03:39:38 +00:00
steve
8f4f4514cc
Don't append a '/' to the destination directory if there
...
is already one there.
PR: 3025
1998-05-25 22:44:16 +00:00
charnier
cf1a881890
Correct use of .Nm. Add rcsid.
1998-05-15 06:30:58 +00:00
eivind
02f883b4a2
Merge from OpenBSD:
...
> Error out if someone tries to mv a mount point. Old behavior was to
> move all files contained in the mounted filesystem to the dest. dir
> which could be quite nasty. Personally, I think rename(2) should
> return EPERM or EINVAL instead of EXDEV.
Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org>
1997-12-10 17:52:49 +00:00
helbig
934ccba807
Synchronize usage() and man page.
...
Pointed out by bde.
1997-10-26 10:33:02 +00:00
wosch
05cceede38
mv(1) is too silent if used with the option -i. It should
...
print which input mv(1) expect (y/n) and print a warning if the
file was not overwritten.
1997-10-04 13:02:06 +00:00
wosch
043e6810da
Endless loop.
...
$ touch from to
$ echo -n loop | mv -i from to
overwrite to?
^C
1997-09-28 10:41:40 +00:00
imp
054f35c222
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:24:41 +00:00
guido
7645c8bdd7
Make mv more robust. A race has been fixed, as well as an extra warning
...
added when sbits are cleared.
Fixes PR 1351 and 1377 (I hope).
1997-03-08 16:05:44 +00:00
peter
83b3c2c161
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
steve
c5d0f9cb39
-Wall cleaning.
1996-12-14 06:08:03 +00:00
wosch
ab0ebe585d
[HISTORY] command appeared in Version 1 AT&T UNIX
...
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
wosch
c7a6efe933
delete unused label endarg
...
correct indent of last new code
fix usage string, option -f before option -i (alphabetic order)
1996-03-01 06:14:13 +00:00
wosch
51408189d3
option -f and -i are exclusive (Posix)
...
respond `Y' is equal to `y'
update usage string
prompt only if source exist
1996-02-20 23:27:57 +00:00
pst
cce07697bc
-- is implemented in getopt(3)
...
-? is an unnecessary case statement and not useful
1996-02-19 05:51:13 +00:00
wosch
baaea7f3b7
delete my last commit
...
Submitted by: pst, ache
1996-02-19 00:44:19 +00:00
wosch
ca465af3df
option -f and -i are exclusive
...
all flag variables initialized with zero
respond `Y' is equal to `y'
update usage string
prompt only if source exist
ignore -i option if file descriptor stdin not refers to a valid
terminal type device
1996-02-18 18:44:58 +00:00
bde
c37d4b75ea
Handle trailing slashes in source filenames correctly. E.g., rewrite
...
`mv foo/ ../..' to `mv foo/ ../../foo/', not to `mv foo/ ../../'. The
latter caused a panic. Before the trailing slash changes in the kernel,
the trailing slashes caused the rename() for this mv to fail earlier, so
there was no panic in 2.0.
Fixes part of PR 760.
1995-10-07 10:42:48 +00:00
joerg
1d402e8a8d
The command to `move' across file system boundaries is actually
...
cp -PRp source_file destination
Closes PR # bin/689: mv(1) manpage
Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-08-15 19:44:39 +00:00
dg
8722740e7f
Added $Id$
1994-09-24 02:59:15 +00:00
rgrimes
e3cfc8ce61
BSD 4.4 Lite bin Sources
1994-05-26 06:18:55 +00:00