Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3, v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.7.0, v3.4.3, v3.4.2, v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2 |
#
46c7fb85 |
| 16-Nov-2012 |
John Marino <draco@marino.st> |
/bin/mv: Sync with FreeBSD
1. Utilize central <paths.h> header 2. Meet posix spec for moving directory to existing non-empty directory 3. Meet posix spec for not moving directory over a file 4. Don'
/bin/mv: Sync with FreeBSD
1. Utilize central <paths.h> header 2. Meet posix spec for moving directory to existing non-empty directory 3. Meet posix spec for not moving directory over a file 4. Don't chop IO into pieces, use MAXPHYS 5. Add -h flag (similar to ln -h flag) 6. Test for input_is_terminal 7. Regression test added.
DETAILS ========================================================================== 1. remove pathnames.h file and add _PATH_RM to paths.h 2. Moving a directory to an existing non-empty directory will now fail as required. 3. Prior to change this test past, but after change it failed on cross-link devices. Original code added to check for case and return -1 for the cross-link case. 4. Read files in one block and improve warn messages. 5. Using -h flag will force mv to treat a symbolic link to a directory for the target as a symbolic link instead of a directory. This makes it possible to atomically update a symbolic link using rename(). 6. POSIX requires this behavior: if (exists and (NOT f_options) AND ((not_writable AND input_is_terminal) OR i_option)) then prompt This behavior was implemented. 7. Passes all tests in suite. Prior to change it failed 2 of 32 tests.
show more ...
|