aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-20 19:14:58 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-20 19:14:58 +0000
commit680dd6f228441bf625ca6a384c22f9dfb90133e1 (patch)
tree019e5faa35b08b7a95f147c51b611a263f9c380d
parent2626ed6c9cb5aba9766af934ac4f2568d0e69d9c (diff)
downloadglibc-680dd6f228441bf625ca6a384c22f9dfb90133e1.zip
glibc-680dd6f228441bf625ca6a384c22f9dfb90133e1.tar.gz
glibc-680dd6f228441bf625ca6a384c22f9dfb90133e1.tar.bz2
Update.
2003-04-20 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/check_fds.c (check_one_fd): Cast first parameter of open_not_cancel explicitly to const char*.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/generic/check_fds.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fb74dba..cdca902 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-20 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/generic/check_fds.c (check_one_fd): Cast first parameter
+ of open_not_cancel explicitly to const char*.
+
2003-04-19 Ulrich Drepper <drepper@redhat.com>
* intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
diff --git a/sysdeps/generic/check_fds.c b/sysdeps/generic/check_fds.c
index 8a3efd1..62df3e5 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 ((const char *) _PATH_DEVNULL, mode);
/* We are very paranoid here. With all means we try to ensure
that we are actually opening the /dev/null device and nothing
else.