mirror of https://github.com/MidnightCommander/mc
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:
parent
30a80d6c8a
commit
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>
|
||||
|
||||
* 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)){
|
||||
|
|
Loading…
Reference in New Issue