Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-7] src



Module Name:    src
Committed By:   martin
Date:           Thu Mar  3 14:30:52 UTC 2016

Modified Files:
        src/bin/cp [netbsd-7]: utils.c
        src/lib/librumphijack [netbsd-7]: hijack.c
        src/sbin/restore [netbsd-7]: dirs.c tape.c
        src/usr.bin/touch [netbsd-7]: touch.c

Log Message:
Pull up following revision(s) (requested by nakayama in ticket #1096):
        bin/mv/mv.c: revision 1.44
        bin/cp/utils.c: revision 1.43-1.44
        lib/librumphijack/hijack.c: revision 1.112-1.115
        usr.bin/touch/touch.c: revision 1.33
        sbin/restore/tape.c: revision 1.68
        sbin/restore/dirs.c: revision 1.51
Don't truncate at sub-microsecond while preserving timestamps.

One of motivation of this change is to make the behavior of test(1)
-nt/ot with preserved copy (like cp -p) closer to the NetBSD 6.
Of course whether full timestamps are kept or not depends also on
underlying file system.

The ifdef added in mv(1) since existing ifdefs was our local change
to compile it on solaris (though I couldn't test it):
http://mail-index.netbsd.org/tech-userlevel/2014/11/28/msg008831.html

Fix the name of failed function in warning message.

Hijack utimensat(2) so that t_vfs test passes after cp(1)/mv(1) are
changed to use the system call.  Linux also has this system call, but
not tested this on linux.

Also hijack futimens(2) so that t_sh test passes.

Define a generic ATCALL() and use it to implement utimensat()
Make ATCALL() behave for absolute paths too.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.42.4.1 src/bin/cp/utils.c
cvs rdiff -u -r1.109.2.1 -r1.109.2.2 src/lib/librumphijack/hijack.c
cvs rdiff -u -r1.50 -r1.50.6.1 src/sbin/restore/dirs.c
cvs rdiff -u -r1.67 -r1.67.8.1 src/sbin/restore/tape.c
cvs rdiff -u -r1.32 -r1.32.8.1 src/usr.bin/touch/touch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index