mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
Updated to fedora-glibc-20041020T1016
This commit is contained in:
parent
75c95410b7
commit
c07cf2c353
@ -1,3 +1,8 @@
|
||||
2004-10-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): If /proc
|
||||
is not mounted, return 1.
|
||||
|
||||
2004-10-20 Roland McGrath <roland@redhat.com>
|
||||
|
||||
* manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
|
||||
|
@ -33,7 +33,10 @@ __readonly_area (const char *ptr, size_t size)
|
||||
|
||||
FILE *fp = fopen ("/proc/self/maps", "rc");
|
||||
if (fp == NULL)
|
||||
return -1;
|
||||
/* We don't know. Returning 1 here means that programs using %n
|
||||
and -D_FORTIFY_SOURCE=2 will work even when /proc is not mounted,
|
||||
but will allow %n even in writable areas. */
|
||||
return 1;
|
||||
|
||||
/* We need no locking. */
|
||||
__fsetlocking (fp, FSETLOCKING_BYCALLER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user