aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-04-23 01:54:03 +0000
committerRoland McGrath <roland@gnu.org>2003-04-23 01:54:03 +0000
commitf478103ff0ab69829f32537947024269296cff17 (patch)
treeb59cefc0f402231e82d6821e1e035cf48d7079c4 /sysdeps/generic
parent4c5dd2a2071c60eaa2d36f8a000fb90a5a5a5813 (diff)
downloadglibc-f478103ff0ab69829f32537947024269296cff17.zip
glibc-f478103ff0ab69829f32537947024269296cff17.tar.gz
glibc-f478103ff0ab69829f32537947024269296cff17.tar.bz2
2003-04-22 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args. (open_not_cancel): Make last argument non-optional. * sysdeps/generic/check_fds.c (check_one_fd): Update caller. * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise. * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/check_fds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/check_fds.c b/sysdeps/generic/check_fds.c
index 8a3efd1..5ae3fee 100644
--- a/sysdeps/generic/check_fds.c
+++ b/sysdeps/generic/check_fds.c
@@ -49,7 +49,7 @@ check_one_fd (int fd, int mode)
/* Something is wrong with this descriptor, it's probably not
opened. Open /dev/null so that the SUID program we are
about to start does not accidently use this descriptor. */
- int nullfd = open_not_cancel (_PATH_DEVNULL, mode);
+ int nullfd = open_not_cancel (_PATH_DEVNULL, mode, 0);
/* We are very paranoid here. With all means we try to ensure
that we are actually opening the /dev/null device and nothing
else.