1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
* sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
	defaultdir variable instead of "/var/shm" everywhere.
	(defaultdir): Change to /dev/shm/.
This commit is contained in:
Ulrich Drepper
2000-06-09 06:42:46 +00:00
parent 1acc0b5513
commit 480a06dfde
3 changed files with 8 additions and 3 deletions

View File

@ -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;
}