URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14922>
Summary: find should show a warning on unreadable mtab
Project: findutils
Submitted by: ametzler
Submitted on: So 06.11.2005 um 12:03
Category: find
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 4.2.25
Fixed Release: None
_______________________________________________________
Details:
[EMAIL PROTECTED]:/tmp/findutils-rel-4-2-fixes$ find foo -printf '%F\n'
unbekannt
[EMAIL PROTECTED]:/tmp/findutils-rel-4-2-fixes$ ls -l /etc/mtab
-rw-r----- 1 root root 378 2005-11-06 11:19 /etc/mtab
This is caused by ./find/fstype.c not checking whether gnulib's
read_file_system_list returns NULL.
It might be a good idea to show a warning in this case, using something like
this:
if (NULL == entries) {
printf("cannot read table of mounted
filesystems:%s\n",strerror(errno));
}
(It actually should use error() instead obviously.)
http://lists.gnu.org/archive/html/bug-findutils/2005-11/msg00000.html
thanks, cu andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14922>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils