Update.
* sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast first syscall parameter to cnst char*.
This commit is contained in:
parent
680dd6f228
commit
a4faf24354
@ -1,7 +1,7 @@
|
|||||||
2003-04-20 Ulrich Drepper <drepper@redhat.com>
|
2003-04-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/generic/check_fds.c (check_one_fd): Cast first parameter
|
* sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
|
||||||
of open_not_cancel explicitly to const char*.
|
first syscall parameter to cnst char*.
|
||||||
|
|
||||||
2003-04-19 Ulrich Drepper <drepper@redhat.com>
|
2003-04-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ check_one_fd (int fd, int mode)
|
|||||||
/* Something is wrong with this descriptor, it's probably not
|
/* Something is wrong with this descriptor, it's probably not
|
||||||
opened. Open /dev/null so that the SUID program we are
|
opened. Open /dev/null so that the SUID program we are
|
||||||
about to start does not accidently use this descriptor. */
|
about to start does not accidently use this descriptor. */
|
||||||
int nullfd = open_not_cancel ((const char *) _PATH_DEVNULL, mode);
|
int nullfd = open_not_cancel (_PATH_DEVNULL, mode);
|
||||||
/* We are very paranoid here. With all means we try to ensure
|
/* We are very paranoid here. With all means we try to ensure
|
||||||
that we are actually opening the /dev/null device and nothing
|
that we are actually opening the /dev/null device and nothing
|
||||||
else.
|
else.
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#ifdef INLINE_SYSCALL
|
#ifdef INLINE_SYSCALL
|
||||||
# define open_not_cancel(name, flags, mode...) \
|
# define open_not_cancel(name, flags, mode...) \
|
||||||
({ int _mode = (0, ##mode); \
|
({ int _mode = (0, ##mode); \
|
||||||
INLINE_SYSCALL (open, 3, name, flags, _mode); })
|
INLINE_SYSCALL (open, 3, (const char *) name, flags, _mode); })
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Uncancelable close. */
|
/* Uncancelable close. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user