projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
insert line break fix again
[gnulib.git]
/
lib
/
utime.c
diff --git
a/lib/utime.c
b/lib/utime.c
index
237afde
..
f5507cb
100644
(file)
--- a/
lib/utime.c
+++ b/
lib/utime.c
@@
-65,7
+65,7
@@
utime_null (const char *file)
of patches, but that system doesn't use this code: it has utimes.
|| fsync (fd) < 0
*/
- ||
ftruncate (fd, st.st_size) < 0
+ ||
(st.st_size == 0 && ftruncate (fd, st.st_size) < 0)
|| close (fd) < 0)
status = -1;
return status;