diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-09 06:42:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-09 06:42:46 +0000 |
commit | 480a06dfde03c34849c24198d65e493fa183ca78 (patch) | |
tree | 3c4e429ad5541026186c0a756dff22899ab520cb /sysdeps/unix | |
parent | 1acc0b55133983c3d6dd57f1eba77af491ecc350 (diff) | |
download | glibc-480a06dfde03c34849c24198d65e493fa183ca78.tar glibc-480a06dfde03c34849c24198d65e493fa183ca78.tar.gz glibc-480a06dfde03c34849c24198d65e493fa183ca78.tar.bz2 glibc-480a06dfde03c34849c24198d65e493fa183ca78.zip |
Update.
* sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
defaultdir variable instead of "/var/shm" everywhere.
(defaultdir): Change to /dev/shm/.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/shm_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/shm_open.c b/sysdeps/unix/sysv/linux/shm_open.c index 8aa080c501..0cf7f5e0b3 100644 --- a/sysdeps/unix/sysv/linux/shm_open.c +++ b/sysdeps/unix/sysv/linux/shm_open.c @@ -56,11 +56,11 @@ where_is_shmfs (void) /* The canonical place is /var/shm. This is at least what the documentation tells everybody to do. */ - if (__statfs ("/var/shm", &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC) + if (__statfs (defaultdir, &f) == 0 && f.f_type == SHMFS_SUPER_MAGIC) { /* It is in the normal place. */ mountpoint.dir = (char *) defaultdir; - mountpoint.dirlen = strlen ("/var/shm/"); + mountpoint.dirlen = sizeof (defaultdir) - 1; return; } |