1999-04-09 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gmount.c (is_block_device_mountable): Allow root to mount
	devices.
This commit is contained in:
Miguel de Icaza 1999-04-10 00:40:32 +00:00
parent 1bf4926ff7
commit aa723d5ddd
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
1999-04-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmount.c (is_block_device_mountable): Allow root to mount
devices.
1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtkflist.[ch]: New files. This is a "file list" widget derived

View File

@ -134,9 +134,6 @@ is_block_device_mountable (char *mount_point)
struct mntent *mnt;
char *retval = NULL;
if (getuid () == 0)
return NULL;
f = setmntent ("/etc/fstab", "r");
if (f == NULL)
return NULL;
@ -152,6 +149,11 @@ is_block_device_mountable (char *mount_point)
continue;
}
if (getuid () == 0){
retval = g_strdup (mnt->mnt_dir);
break;
}
if (option_has_user (mnt->mnt_opts)){
retval = g_strdup (mnt->mnt_dir);
break;