mirror of git://sourceware.org/git/glibc.git
hurd: Assume non-suid during bootstrap
We do not have a hurd data block only when bootstrapping the system, in which case we don't have a notion of suid yet anyway. This is needed, otherwise init_standard_fds would check that standard file descriptors are allocated, which is meaningless during bootstrap.
This commit is contained in:
parent
9125e43daf
commit
f7b0fc5cc6
|
|
@ -95,8 +95,13 @@ init1 (int argc, char *arg0, ...)
|
||||||
d = (void *) ++envp;
|
d = (void *) ++envp;
|
||||||
|
|
||||||
if ((void *) d == argv[0])
|
if ((void *) d == argv[0])
|
||||||
/* No Hurd data block to process. */
|
{
|
||||||
return;
|
/* No Hurd data block to process. */
|
||||||
|
#ifndef SHARED
|
||||||
|
__libc_enable_secure = 0;
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef SHARED
|
#ifndef SHARED
|
||||||
__libc_enable_secure = d->flags & EXEC_SECURE;
|
__libc_enable_secure = d->flags & EXEC_SECURE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue