about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-02-26 21:36:37 +0000
committerUlrich Drepper <drepper@redhat.com>2004-02-26 21:36:37 +0000
commitf15e5528931453edc570998af94b6b4c6d4b904a (patch)
tree1fec405a4166cee3719e3af9d3ed3b4e88d2465b /sysdeps
parentd3a4681c8d690cc0f5d0fc759f52264f80051989 (diff)
downloadglibc-f15e5528931453edc570998af94b6b4c6d4b904a.tar.gz
glibc-f15e5528931453edc570998af94b6b4c6d4b904a.tar.xz
glibc-f15e5528931453edc570998af94b6b4c6d4b904a.zip
Update.
2004-02-26  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
	retval to -1 on error.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/clock_settime.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c
index d57c70e5e1..5d19a09bf8 100644
--- a/sysdeps/unix/sysv/linux/clock_settime.c
+++ b/sysdeps/unix/sysv/linux/clock_settime.c
@@ -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