[MPlayer-dev-eng] [PATCH] print appropriate error when failing to open a file

Corey Hickey bugfood-ml at fatooh.org
Tue Dec 13 04:17:33 CET 2005


MPlayer prints "File not found:" regardless of the actual reason it
fails to open() a file (access denied, etc.). The attached patch makes
MPlayer print a reason for every relevant error I found in 'man 2 open'.

I've tested as many of these as I can:
EACCES
ELOOP
ENAMETOOLONG
ENXIO
ENOENT
ENOTDIR

The rest should be fine, unless there are portability considerations I
don't know about.

-Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: open-print-error.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051212/6bab6e5e/attachment.asc>


More information about the MPlayer-dev-eng mailing list