# HG changeset patch # User erik # Date 1280535028 0 # Node ID 4554518224d72645bd4a1f563551918bf75defb7 # Parent af0a1be87264b9092dcf9b15bb805eeacbe05018 Fix the test of whether disk names should be raw devices This is a side port of a fix from the original libdvdread 0.9.7 release. Darwin and BSD platforms disk device names might have to be converted to raw device names. There is a check for this in the code. But it is missing a very important 'r'. This fix made it into the 0.9.7 release but did not make the commit to this repo when this repo was given the API changes for 0.9.7 because it was not clear whether the fix was still relevant. Thanks to John Stebbins we now have this confirmation and we can go ahead and commit this fix. diff -r af0a1be87264 -r 4554518224d7 dvd_reader.c --- a/dvd_reader.c Tue Jul 20 09:30:13 2010 +0000 +++ b/dvd_reader.c Sat Jul 31 00:10:28 2010 +0000 @@ -319,7 +319,7 @@ char *new_path; /* If it doesn't start with "/dev/" or does start with "/dev/r" exit */ - if( !strncmp( path, "/dev/", 5 ) || strncmp( path, "/dev/r", 6 ) ) + if( strncmp( path, "/dev/", 5 ) || !strncmp( path, "/dev/r", 6 ) ) return (char *) strdup( path ); /* Replace "/dev/" with "/dev/r" */