# HG changeset patch # User jkeil # Date 997791458 0 # Node ID 9ffe6c1a33b9679bc74072d3ef6745bd7af69b22 # Parent f9beae70c5c25f129100c5427ebf332e4f5d7702 In case the open on the dvd device fails, print some hints based on errno why the open has failed. diff -r f9beae70c5c2 -r 9ffe6c1a33b9 dvdauth.c --- a/dvdauth.c Tue Aug 14 08:18:52 2001 +0000 +++ b/dvdauth.c Tue Aug 14 12:17:38 2001 +0000 @@ -8,6 +8,7 @@ #include #include //#include // FIXME: conflicts with fs.h +#include #include #include #include @@ -76,7 +77,6 @@ */ #ifdef __linux__ #include -#include #ifndef FIBMAP #define FIBMAP 1 @@ -185,7 +185,8 @@ DVDHandle dvd; /* DVD device handle */ if ((dvd=DVDOpenDevice(dev)) == DVDOpenFailed) { - fprintf(stderr,"DVD: cannot open DVD device \"%s\".\n",dev); + fprintf(stderr,"DVD: cannot open DVD device \"%s\": %s.\n", + dev, strerror(errno)); return 1; }