aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-10-20 11:04:51 +0000
committerJakub Jelinek <jakub@redhat.com>2004-10-20 11:04:51 +0000
commitc07cf2c35353b15a04e7bcedfb4df8ee194a2ae2 (patch)
tree364bfb25e1a10cd3ac8484957cbef4af8cdc4562 /sysdeps/unix/sysv/linux
parent75c95410b7b80289663bf2ba828e84d2c7890369 (diff)
downloadglibc-c07cf2c35353b15a04e7bcedfb4df8ee194a2ae2.tar
glibc-c07cf2c35353b15a04e7bcedfb4df8ee194a2ae2.tar.gz
glibc-c07cf2c35353b15a04e7bcedfb4df8ee194a2ae2.tar.bz2
glibc-c07cf2c35353b15a04e7bcedfb4df8ee194a2ae2.zip
Updated to fedora-glibc-20041020T1016
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/readonly-area.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index ce5321bcef..3db90023bf 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -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);