# HG changeset patch # User Paul Eggert # Date 1165342430 0 # Node ID 064005e1c3c38057a58b515fd58bbab6a0093a01 # Parent aead3397193aeacdd7f714489140f2731e4c73d5 Prefer fd < 0 to ! (0 <= fd). diff --git a/lib/utimens.c b/lib/utimens.c --- a/lib/utimens.c +++ b/lib/utimens.c @@ -87,10 +87,10 @@ problem affects many applications. */ #if HAVE_BUGGY_NFS_TIME_STAMPS - if (0 <= fd) + if (fd < 0) + sync (); + else fsync (fd); - else - sync (); #endif /* There's currently no interface to set file timestamps with