]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 26 Feb 2004 21:36:37 +0000 (21:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 26 Feb 2004 21:36:37 +0000 (21:36 +0000)
2004-02-26  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
retval to -1 on error.

ChangeLog
sysdeps/unix/sysv/linux/clock_settime.c

index 4fe5c858e9c1f4c38b2652cae7e2984a8dd4b0c2..4aafcd32c1103b12d164ab4441e696e4df0b548d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-26  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
+       retval to -1 on error.
+
 2004-02-26  Ulrich Drepper  <drepper@redhat.com>
 
        * stdlib/canonicalize.c (__realpath): Simplify.
index d57c70e5e1be3a5511326dce30e46d125d022874..5d19a09bf82fc306802714245a029e8c85a3333c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -60,7 +60,10 @@ extern int __libc_missing_posix_timers attribute_hidden;
       if (e == EINVAL && clock_id == CLOCK_REALTIME)                         \
        HANDLE_REALTIME;                                                      \
       else                                                                   \
-       __set_errno (e);                                                      \
+       {                                                                     \
+         __set_errno (e);                                                    \
+         retval = -1;                                                        \
+       }                                                                     \
     }                                                                        \
     break
 #endif