aboutsummaryrefslogtreecommitdiff
path: root/bin/mv
Commit message (Collapse)AuthorAgeFilesLines
* Replace a fairly opaque sentence with a much clearer wording from NetBSD.Pav Lucistnik2007-05-121-2/+2
| | | | | | | | | PR: docs/101330 (inspired by) Submitted by: Peter Gildea <peter@gildea.com> Obtained from: NetBSD Notes: svn path=/head/; revision=169510
* Attempt to complete the userspace integration of POSIX.1e extended ACLs.Christian S.J. Peron2005-09-051-1/+18
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=149790
* Correct a few places where we called warn() when warnx() should haveMaxime Henrion2005-05-191-4/+4
| | | | | | | | | | been used. Submitted by: "Liam J. Foy" <liamfoy@sepulcrum.org> Obtained from: DragonFlyBSD Notes: svn path=/head/; revision=146418
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-161-5/+5
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-102-1/+2
| | | | Notes: svn path=/head/; revision=139969
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-062-8/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* When symbolic link is pointed onto a mount point, it can't be movedPawel Jakub Dawidek2004-03-211-6/+17
| | | | | | | | | | | | to a different file system. Patch in PR was incorrect. PR: bin/64430 Submitted by: Samuel Tardieu MFC after: 3 days Notes: svn path=/head/; revision=127272
* Centralize _PATH_* definitions.David E. O'Brien2003-05-052-39/+0
| | | | | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me) Notes: svn path=/head/; revision=114763
* Quiet warnings about copyright[].David E. O'Brien2003-05-011-2/+2
| | | | Notes: svn path=/head/; revision=114433
* Grammar fix.Giorgos Keramidas2002-08-261-1/+1
| | | | | | | | | PR: docs/42021 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 3 days Notes: svn path=/head/; revision=102434
* s/filesystem/file system/ as discussed on -developersTom Rhodes2002-08-211-1/+1
| | | | Notes: svn path=/head/; revision=102230
* mdoc(7) police: tidy up, bump document date on behalf of the -n option.Ruslan Ermilov2002-08-091-9/+9
| | | | Notes: svn path=/head/; revision=101571
* Update usage for the addition of -n in rev 1.35 of mv.c.Johan Karlsson2002-07-092-3/+3
| | | | | | | Approved by: obrien, sheldonh (mentor). Notes: svn path=/head/; revision=99678
* When trying to emulate a cross-device move operation with cp and rm, addTim J. Robbins2002-06-161-2/+2
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=98280
* Remove local definition of _PATH_CP, and use <paths.h>, _PATH_CP is in theJuli Mallett2002-05-172-1/+1
| | | | | | | CURRENT <paths.h>. Notes: svn path=/head/; revision=96806
* Consistancy check s/file system/filesystem/Tom Rhodes2002-05-161-1/+1
| | | | | | | Reviewed by: brian Notes: svn path=/head/; revision=96702
* Update SCM ID.David E. O'Brien2002-03-221-2/+2
| | | | Notes: svn path=/head/; revision=92974
* Note that -n is non-standard.David E. O'Brien2002-03-221-1/+3
| | | | Notes: svn path=/head/; revision=92973
* Add the -n option, which automatically answers "no" to the overwrite question.David E. O'Brien2002-03-222-6/+27
| | | | Notes: svn path=/head/; revision=92935
* Warnings fixes.Mark Murray2002-02-221-1/+2
| | | | Notes: svn path=/head/; revision=91085
* Move user_from_uid to pwd.hWarner Losh2002-02-141-0/+2
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=90644
* missed a few registersWarner Losh2002-02-021-3/+3
| | | | Notes: svn path=/head/; revision=90114
* o __P has been reovedWarner Losh2002-02-021-16/+9
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=90110
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-1/+0
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* Set WARNS=2 on programs which compile cleanly.Dima Dorfman2001-07-151-0/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79758
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79754
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-2/+3
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Use PATH_MAX in preference to MAXPATHLEN.Warner Losh2001-05-291-3/+4
| | | | Notes: svn path=/head/; revision=77409
* Silence WARNS=2 and BDECFLAGS on alpha and i386, except for mode_tKris Kennaway2001-05-201-7/+8
| | | | | | | | | warnings. MFC after: 1 week Notes: svn path=/head/; revision=76878
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68935
* Don't emit a warning message if fchflags() returns EOPNOTSUPPSADA Kenji2000-07-201-1/+10
| | | | | | | | Requested by: FUJISHIMA Satsuki <k5@cheerful.com> Obtained from: OpenBSD Notes: svn path=/head/; revision=63680
* To make inherit file flags when mv(1) moves file between directoriesSADA Kenji2000-07-151-0/+2
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=63225
* Use lstat(2) instead of stat(2) when deciding if we should fastcopyDavid Malone2000-07-111-1/+1
| | | | | | | | | | a file. This fixes moving symlinks across partitions. PR: 17847 Reviewed by: bde Notes: svn path=/head/; revision=62963
* Removed bogus dependancy on libutil.Josef Karthauser2000-01-011-3/+0
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=55301
* mention that -v is non-standardMichael Haro1999-09-041-0/+4
| | | | | | | Reviewed-by: obrien Notes: svn path=/head/; revision=50871
* add verbose flagMichael Haro1999-08-292-7/+23
| | | | Notes: svn path=/head/; revision=50544
* $Id$ -> $FreeBSD$Peter Wemm1999-08-274-4/+4
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-081-2/+2
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() orDag-Erling Smørgrav1998-10-131-2/+2
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=40301
* Fixed printf format errors.Bruce Evans1998-06-281-3/+3
| | | | Notes: svn path=/head/; revision=37245
* Make sure we don't overflow the path buffer. Exit if we do.Warner Losh1998-06-091-2/+4
| | | | | | | Obtained from or inspired by: A similar change in OpenBSD by theo Notes: svn path=/head/; revision=36785
* Don't append a '/' to the destination directory if thereSteve Price1998-05-251-3/+5
| | | | | | | | | is already one there. PR: 3025 Notes: svn path=/head/; revision=36383
* Correct use of .Nm. Add rcsid.Philippe Charnier1998-05-152-13/+14
| | | | Notes: svn path=/head/; revision=36049
* Merge from OpenBSD:Eivind Eklund1997-12-101-2/+16
| | | | | | | | | | | | > 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> Notes: svn path=/head/; revision=31664
* Synchronize usage() and man page.Wolfgang Helbig1997-10-262-5/+5
| | | | | | | Pointed out by bde. Notes: svn path=/head/; revision=30727
* mv(1) is too silent if used with the option -i. It shouldWolfram Schneider1997-10-041-6/+9
| | | | | | | | print which input mv(1) expect (y/n) and print a warning if the file was not overwritten. Notes: svn path=/head/; revision=30106
* Endless loop.Wolfram Schneider1997-09-281-5/+6
| | | | | | | | | | $ touch from to $ echo -n loop | mv -i from to overwrite to? ^C Notes: svn path=/head/; revision=29933
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24348
* Make mv more robust. A race has been fixed, as well as an extra warningGuido van Rooij1997-03-081-10/+28
| | | | | | | | added when sbits are cleared. Fixes PR 1351 and 1377 (I hope). Notes: svn path=/head/; revision=23525