Description of problem: When "fuser $NOTEXIST", fuser prints out two identical messages saying that it couldn't stat the file. This is at least confusing and should either be condensed to one message or the messages should be expanded (see below). Version-Release number of selected component (if applicable): psmisc-22.6-9.fc11.i586 How reproducible: Always. Steps to Reproduce: 1. "fuser doesnotex.ist" Actual results: | [tim@passepartout ~]$ fuser doesnotex.ist | Cannot stat doesnotex.ist: Datei oder Verzeichnis nicht gefunden | Cannot stat doesnotex.ist: Datei oder Verzeichnis nicht gefunden | [tim@passepartout ~]$ Expected results: Either one message or a more detailed explanation (see below). Additional info: The first line stems from fuser.c:333 (parse_*file* ()), the second from fuser.c:352 (parse_*unixsockets* ()). I'd assume that they should be exclusive to each other in some way.
Created attachment 411555 [details] proposed patch a patch: when the first stat fails, we will not do the other one
The patch works for me, thanks; still, the "relationship" between parse_file () and parse_unixsockets () seems very clumsy though.
fixed in rawhide: psmisc-22.6-14.fc14