1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmount.c (get_mountable_devices): Show error message if the /etc/fstab is not readable by the user.
Этот коммит содержится в:
родитель
30a80d6c8a
Коммит
d3aa1fc39a
@ -1,3 +1,8 @@
|
|||||||
|
1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* gmount.c (get_mountable_devices): Show error message if the
|
||||||
|
/etc/fstab is not readable by the user.
|
||||||
|
|
||||||
1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
* gview.c (scrollbar_moved): Better, but still shaggy when you
|
* gview.c (scrollbar_moved): Better, but still shaggy when you
|
||||||
|
@ -188,8 +188,10 @@ get_mountable_devices (void)
|
|||||||
GList *list = NULL;
|
GList *list = NULL;
|
||||||
|
|
||||||
f = setmntent ("/etc/fstab", "r");
|
f = setmntent ("/etc/fstab", "r");
|
||||||
if (f == NULL)
|
if (f == NULL){
|
||||||
|
message (1, MSG_ERROR, _("Could not open the /etc/fstab file"));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
while ((mnt = getmntent (f))){
|
while ((mnt = getmntent (f))){
|
||||||
if (option_has_user (mnt->mnt_opts)){
|
if (option_has_user (mnt->mnt_opts)){
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user