1
1

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.
Этот коммит содержится в:
Miguel de Icaza 1999-03-14 23:31:50 +00:00
родитель 30a80d6c8a
Коммит d3aa1fc39a
2 изменённых файлов: 8 добавлений и 1 удалений

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

@ -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>
* gview.c (scrollbar_moved): Better, but still shaggy when you

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

@ -188,8 +188,10 @@ get_mountable_devices (void)
GList *list = NULL;
f = setmntent ("/etc/fstab", "r");
if (f == NULL)
if (f == NULL){
message (1, MSG_ERROR, _("Could not open the /etc/fstab file"));
return NULL;
}
while ((mnt = getmntent (f))){
if (option_has_user (mnt->mnt_opts)){