summaryrefslogtreecommitdiffstats
path: root/bin/mv
Commit message (Collapse)AuthorAgeFilesLines
* Use PATH_MAX in preference to MAXPATHLEN.imp2001-05-291-3/+4
|
* Silence WARNS=2 and BDECFLAGS on alpha and i386, except for mode_tkris2001-05-201-7/+8
| | | | | | warnings. MFC after: 1 week
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Don't emit a warning message if fchflags() returns EOPNOTSUPPsada2000-07-201-1/+10
| | | | | Requested by: FUJISHIMA Satsuki <k5@cheerful.com> Obtained from: OpenBSD
* To make inherit file flags when mv(1) moves file between directoriessada2000-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
* Use lstat(2) instead of stat(2) when deciding if we should fastcopydwmalone2000-07-111-1/+1
| | | | | | | a file. This fixes moving symlinks across partitions. PR: 17847 Reviewed by: bde
* Removed bogus dependancy on libutil.joe2000-01-011-3/+0
| | | | Noticed by: bde
* mention that -v is non-standardmharo1999-09-041-0/+4
| | | | Reviewed-by: obrien
* add verbose flagmharo1999-08-292-7/+23
|
* $Id$ -> $FreeBSD$peter1999-08-274-4/+4
|
* Various spelling/formatting changes.kris1999-05-081-2/+2
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-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
* Fixed printf format errors.bde1998-06-281-3/+3
|
* Make sure we don't overflow the path buffer. Exit if we do.imp1998-06-091-2/+4
| | | | Obtained from or inspired by: A similar change in OpenBSD by theo
* Don't append a '/' to the destination directory if theresteve1998-05-251-3/+5
| | | | | | is already one there. PR: 3025
* Correct use of .Nm. Add rcsid.charnier1998-05-152-13/+14
|
* Merge from OpenBSD:eivind1997-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>
* Synchronize usage() and man page.helbig1997-10-262-5/+5
| | | | Pointed out by bde.
* mv(1) is too silent if used with the option -i. It shouldwosch1997-10-041-6/+9
| | | | | print which input mv(1) expect (y/n) and print a warning if the file was not overwritten.
* Endless loop.wosch1997-09-281-5/+6
| | | | | | | $ touch from to $ echo -n loop | mv -i from to overwrite to? ^C
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Make mv more robust. A race has been fixed, as well as an extra warningguido1997-03-081-10/+28
| | | | | added when sbits are cleared. Fixes PR 1351 and 1377 (I hope).
* Revert $FreeBSD$ to $Id$peter1997-02-224-4/+4
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-144-4/+4
| | | | | | | | 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.
* -Wall cleaning.steve1996-12-141-3/+3
|
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-1/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* delete unused label endargwosch1996-03-011-9/+8
| | | | | correct indent of last new code fix usage string, option -f before option -i (alphabetic order)
* option -f and -i are exclusive (Posix)wosch1996-02-202-9/+29
| | | | | | respond `Y' is equal to `y' update usage string prompt only if source exist
* -- is implemented in getopt(3)pst1996-02-191-5/+2
| | | | -? is an unnecessary case statement and not useful
* delete my last commitwosch1996-02-192-28/+8
| | | | Submitted by: pst, ache
* option -f and -i are exclusivewosch1996-02-182-10/+30
| | | | | | | | | | 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
* Handle trailing slashes in source filenames correctly. E.g., rewritebde1995-10-071-5/+11
| | | | | | | | | `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.
* The command to `move' across file system boundaries is actuallyjoerg1995-08-151-2/+2
| | | | | | | | cp -PRp source_file destination Closes PR # bin/689: mv(1) manpage Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider)
* Added $Id$dg1994-09-244-0/+5
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-264-0/+474
OpenPOWER on IntegriCloud