projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79ca43
)
Prefer fd < 0 to ! (0 <= fd).
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 5 Dec 2006 18:13:50 +0000
(18:13 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 5 Dec 2006 18:13:50 +0000
(18:13 +0000)
lib/utimens.c
patch
|
blob
|
history
diff --git
a/lib/utimens.c
b/lib/utimens.c
index e72b84046d3278bc07b3a14d1a8bb3ed460e8e01..8f4273c80876bf8216ccd77a60769948a906556d 100644
(file)
--- a/
lib/utimens.c
+++ b/
lib/utimens.c
@@
-87,10
+87,10
@@
futimens (int fd ATTRIBUTE_UNUSED,
problem affects many applications. */
#if HAVE_BUGGY_NFS_TIME_STAMPS
- if (0 <= fd)
- fsync (fd);
- else
+ if (fd < 0)
sync ();
+ else
+ fsync (fd);
#endif
/* There's currently no interface to set file timestamps with