| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
> 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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|