[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #14922] find should show a warning on unreadable mtab
From: |
Andreas Metzler |
Subject: |
[bug #14922] find should show a warning on unreadable mtab |
Date: |
Sun, 6 Nov 2005 12:03:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3 |
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:
address@hidden:/tmp/findutils-rel-4-2-fixes$ find foo -printf '%F\n'
unbekannt
address@hidden:/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 #14922] find should show a warning on unreadable mtab,
Andreas Metzler <=