| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
warnings.
MFC after: 1 week
|
| |
|
|
|
|
|
| |
Requested by: FUJISHIMA Satsuki <k5@cheerful.com>
Obtained from: OpenBSD
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
a file. This fixes moving symlinks across partitions.
PR: 17847
Reviewed by: bde
|
|
|
|
| |
Noticed by: bde
|
|
|
|
| |
Reviewed-by: obrien
|
| |
|
| |
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Obtained from or inspired by: A similar change in OpenBSD by theo
|
|
|
|
|
|
| |
is already one there.
PR: 3025
|
| |
|
|
|
|
|
|
|
|
|
| |
> 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>
|
|
|
|
| |
Pointed out by bde.
|
|
|
|
|
| |
print which input mv(1) expect (y/n) and print a warning if the
file was not overwritten.
|
|
|
|
|
|
|
| |
$ touch from to
$ echo -n loop | mv -i from to
overwrite to?
^C
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
|
| |
added when sbits are cleared.
Fixes PR 1351 and 1377 (I hope).
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
|
|
|
|
|
| |
correct indent of last new code
fix usage string, option -f before option -i (alphabetic order)
|
|
|
|
|
|
| |
respond `Y' is equal to `y'
update usage string
prompt only if source exist
|
|
|
|
| |
-? is an unnecessary case statement and not useful
|
|
|
|
| |
Submitted by: pst, ache
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
`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.
|
|
|
|
|
|
|
|
| |
cp -PRp source_file destination
Closes PR # bin/689: mv(1) manpage
Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider)
|
| |
|
|
|