| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and follow the letter of the POSIX specification.
- Moving a directory to an existing non-empty directory will now fail,
as required.
- Improve consistency and remove some style bugs of earlier versions.
This version passes all tests of tools/regression/bin/mv/regress.sh 1.6
Reviewed by: bde
MFC after: 1 month
|
|
|
|
|
|
| |
undefined behavior.
Noted by: alfred
|
|
|
|
|
|
| |
living across the vfork as volatile.
Noted by: kan
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with the same name exists, delete that directory first, before performing
the copy. This ensures that mv(1) across devices follows the semantics
of rename(2), as required by POSIX.
This change could introduce the potential of data loss, even if the
copy fails, violating the atomicity properties of rename(2). This is
(mostly) mitigated by first renaming the destination and obliterating
it only after a succesfull copy.
The above logic also led to the introduction of code that will cleanup
the results of a partial copy, if a cross-device copy fails.
PR: bin/118367
MFC after: 1 month
|
| |
|
|
|
|
|
|
| |
PR: docs/101330 (inspired by)
Submitted by: Peter Gildea <peter@gildea.com>
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This includes adding support for ACLs into cp(1) and mv(1) userspace
utilities.
For mv(1), if _PC_ACL_EXTENDED is in effect for the source AND destination
operands, the destination file's ACLs shall reflect the source.
For cp(1), if _PC_ACL_EXTENDED is in effect for both source and destination
operands, and -p has been specified, the ACLs from the source shall be
preserved on the destination.
MFC after: 1 month
|
|
|
|
|
|
|
| |
been used.
Submitted by: "Liam J. Foy" <liamfoy@sepulcrum.org>
Obtained from: DragonFlyBSD
|
|
|
|
| |
Sort standard sections in the (documented) preferred order.
|
| |
|
|
|
|
| |
OK'ed by: imp, core
|
|
|
|
|
|
|
|
|
| |
to a different file system.
Patch in PR was incorrect.
PR: bin/64430
Submitted by: Samuel Tardieu
MFC after: 3 days
|
|
|
|
| |
Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
|
| |
|
|
|
|
|
|
| |
PR: docs/42021
Submitted by: Jeff Ito <jeffi@rcn.com>
MFC after: 3 days
|
| |
|
| |
|
|
|
|
| |
Approved by: obrien, sheldonh (mentor).
|
|
|
|
|
|
|
|
|
| |
a "--" argument after the options so filenames with leading dashes are
handled correctly.
PR: 39318
Submitted by: Serge van den Boom <svdb@stack.nl>
MFC after: 1 week
|
|
|
|
| |
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>
|