summaryrefslogtreecommitdiff
path: root/bin/mv
AgeCommit message (Collapse)Author
2016-02-01stop linking mv(1) to libutil, since that isn't used.Gleydson Soares
OK guenther@ nicm@
2015-12-27remove unused variableCharles Longeau
ok tedu@
2015-12-26Set the times, mode, and flags on symlinks when doing cp -p (or mv acrossPhilip Guenther
filesystems) problem noted by Carsten Kunze (carsten.kunze (at) arcor.de)
2015-11-27the rm code in mv inherited pledge from rm. it shoud be safe, but thereTed Unangst
are cases when it is too strict. after pledge() we continue to run some of the cp code which requires a very broad set of permissions. remove pledge entirely for now, pending a complete analysis of needs.
2015-11-17as in rm, needs getpw in pledgeTed Unangst
2015-11-17don't need locale header anymoreTed Unangst
2015-11-17overwriting code isn't usedTed Unangst
2015-11-17remove some more flagsTed Unangst
2015-11-17trim down the flags in rmTed Unangst
2015-11-17remove Rflag and pflag (1) and rflag (0).Ted Unangst
2015-11-17remove getopt() from the nested cp and rm mainsTed Unangst
2015-11-17direct copy of cp and rm code into mv, so it can avoid fork+exec.Ted Unangst
some or even most of the code can still be streamlined more. ok deraadt
2015-10-06we're running rm. call it rm too.Ted Unangst
2015-08-24In fastcopy(), do the required malloc() before opening input or output file.Philip Guenther
problem noted by Martijn van Duren (martijn987 (at) gmail.com)
2015-05-03Preserve times to nanosecond precision instead of just microsecond.Philip Guenther
Prefer to set attributes by fd for regular files, and not follwing symlinks for others. ok brynet@ millert@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-07-21don't try to be clever and name the _PATH_CP exec "mv", since thisTheo de Raadt
breaks the instbin argv[0] mechanism found by landry, ok guenther
2014-05-21Use errc/warnc to simplify code.Philip Guenther
ok jca@ krw@
2012-06-18s/empy/empty/ typo fixMatthew Dempsky
thx Scott McEachern
2011-06-16fix error in previous;Jason McIntyre
2011-06-15consistently specify that -f and -i override previous options in eachTed Unangst
option's description. jmc points out this works better than deferring such information to a post-options sentence.
2010-12-28a colon is not needed here;Jason McIntyre
2010-12-271) Fix the pseudo-code explaining cross-filesystem moves.Ingo Schwarze
2) Explain more precisely which moves are denied and what happens then, and move this information from CAVEATS to DESCRIPTION. 3) Slightly expand the example below CAVEATS to show another detail that may cause unpleasant surprises. Triggered by a patch from tedu@, feedback and ok jmc@, ok tedu@.
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-10-21various doc fixes related to how mv handles symlinksJason McIntyre
and file system traversal; this is work from Ingo Schwarze, tweaked a little by myself, and we borrowed half a sentence from the netbsd man page too; ok sobrado
2008-05-26get the argument name right; from Jacek MasiulaniecJason McIntyre
2007-07-27Separate code a little, making it clearer. From Gilles ChehadeRay Lai
<root at evilkittens dot org>. Reset blen on malloc failure. Match blen type with st_blksize. OK moritz@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2007-02-16Allow moving files starting with a dash acrossMoritz Jodeit
file system boundaries. Noticed by Roland Illig. ok otto@ millert@ jaredy@
2006-08-10- use .ExJason McIntyre
- bump .St - standard EXAMPLES - macro cleanup
2006-08-10better explanation of second synopsis form; add a caveat alsoJason McIntyre
started by freebsd pr #101330, from peter gildea diff from otto and myself
2005-06-30Set tv_usec sensibly when calling utimes() instead of just zeroing it.Todd C. Miller
We have nsec file times so we may as well use them...
2005-04-08Sync with recent realpath(3) changes: on failure, don't use the secondJared Yanovich
argument "resolved", since it is undefined. ok and help millert, otto
2004-12-13Use warnx() instead of warn() in four places where we know errno is zero.Otto Moerbeek
ok henning@ fgsch@ pedro@ millert@
2003-07-29spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-21Fix some typos in comments; Patrick LatifiTodd C. Miller
2003-03-13Use the return value of strcpy() to detect ENAMETOOLONG instead ofTodd C. Miller
doing an extra strlen; deraadt@ OK
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2003-03-12more .LiTheo de Raadt
2002-07-04ansiTheo de Raadt
2002-02-18change -pr to -PRp (ok mpech@, millert@)Mark Grimes
Closes PR2258
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2002-01-25Stat source path at the top of do_move() and return an error ifTodd C. Miller
this fails. Previously, "mv nonexistent file_with_no_write_perms" would prompt whether or not to overwrite the file w/o write perms even though 'nonexistent' would fail to lstat() later on.
2002-01-16missed some registers, kill'em!Mike Pechkin
millert@ ok
2001-12-21Initial patch for a new mdoc issue.Mike Pechkin
Powered by @mantoya: o) kill extra line in the end of file; o) kill extra space in the end of line; o) replace blank lines with .Pp; millert@ ok