]> Zhao Yanbai Git Server - minix.git/commit
Fix time modification on truncate()
authorEvgeniy Ivanov <lolkaantimat@gmail.com>
Fri, 15 Jul 2011 14:21:05 +0000 (14:21 +0000)
committerThomas Veerman <thomas@minix3.org>
Fri, 15 Jul 2011 14:21:05 +0000 (14:21 +0000)
commit255ae85b1ea2a42d0df32f3326e03f8201efc46b
treecffa19365552647dc1509f5741dc3eb38c85986e
parent902e0e27e0802c722957153ba3dda0b79b9ec94f
Fix time modification on truncate()

POSIX truncate specification says "Upon successful completion, if
the *file size is changed*, this function shall mark for update the
st_ctime and st_mtime fields of the file." This patch prevents
changing of the date fields when the size stays the same.
servers/ext2/link.c
servers/mfs/link.c
test/test16.c