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.
This commit is contained in:
Miguel de Icaza 1999-03-14 23:31:50 +00:00
parent 30a80d6c8a
commit d3aa1fc39a
2 changed files with 8 additions and 1 deletions

View File

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

View File

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