1999-04-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmount.c (is_block_device_mountable): Allow root to mount devices.
Этот коммит содержится в:
родитель
1bf4926ff7
Коммит
aa723d5ddd
@ -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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user