projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
346afb3
)
(settime): If settimeofday fails, give up right away.
author
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 29 Sep 2005 17:21:44 +0000
(17:21 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 29 Sep 2005 17:21:44 +0000
(17:21 +0000)
lib/settime.c
patch
|
blob
|
history
diff --git
a/lib/settime.c
b/lib/settime.c
index
8a775ee
..
1d40987
100644
(file)
--- a/
lib/settime.c
+++ b/
lib/settime.c
@@
-53,13
+53,10
@@
settime (struct timespec const *ts)
#if HAVE_SETTIMEOFDAY
{
struct timeval tv;
- int r;
tv.tv_sec = ts->tv_sec;
tv.tv_usec = ts->tv_nsec / 1000;
- r = settimeofday (&tv, 0);
- if (r == 0 || errno == EPERM)
- return r;
+ return settimeofday (&tv, 0);
}
#elif HAVE_STIME
/* This fails to compile on OSF1 V5.1, due to stime requiring