about summary refs log tree commit diff
path: root/sysdeps/posix/system.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-02 18:35:38 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-02 18:35:38 +0000
commitd2a6ff8d69b5f2f2f084b3a58a0dc7456e12e8a6 (patch)
tree153cacd36078dec5a3afaf44a5a2d2bfec12f6a6 /sysdeps/posix/system.c
parent6f2a8167292f11227d4540f90e933bc29265921c (diff)
downloadglibc-d2a6ff8d69b5f2f2f084b3a58a0dc7456e12e8a6.tar.gz
glibc-d2a6ff8d69b5f2f2f084b3a58a0dc7456e12e8a6.tar.xz
glibc-d2a6ff8d69b5f2f2f084b3a58a0dc7456e12e8a6.zip
Update.
	* sysdeps/posix/system.c: Correct return value for LINE == NULL.
Diffstat (limited to 'sysdeps/posix/system.c')
-rw-r--r--sysdeps/posix/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/system.c b/sysdeps/posix/system.c
index 10c86a998b..1df92203de 100644
--- a/sysdeps/posix/system.c
+++ b/sysdeps/posix/system.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 94, 95, 96, 97, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999, 2000 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
@@ -46,7 +46,7 @@ __libc_system (const char *line)
   if (line == NULL)
     /* Check that we have a command processor available.  It might
        not be available after a chroot(), for example.  */
-    return __libc_system ("exit 0");
+    return __libc_system ("exit 0") == 0;
 
   sa.sa_handler = SIG_IGN;
   sa.sa_flags = 0;