| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
CURRENT <paths.h>.
|
|
|
|
| |
Reviewed by: brian
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move group_from_gid to grp.h
Remove from stdlib.h
Make the prototypes match the code
Fix rm and mv to include new files.
NetBSD has these defined in those files, and others too that I've not
done.
Approved by: terminal room kabal
Reviewed by: jhb, phk
|
| |
|
|
|
|
|
|
|
|
|
| |
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
|
|
|
|
|
|
| |
set WARNS=0.
Reviewed by: mike
|
| |
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
| |
|
|
|
|
| |
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
| |
|
|
|
|
|
|
| |
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)
|
| |
|
|
|