1
1

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

* gmount.c (is_block_device_mountable): Allow root to mount
	devices.
Этот коммит содержится в:
Miguel de Icaza 1999-04-10 00:40:32 +00:00
родитель 1bf4926ff7
Коммит aa723d5ddd
2 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

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