Mercurial > libdvdread4.hg
changeset 57:4554518224d7 src
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.
author | erik |
---|---|
date | Sat, 31 Jul 2010 00:10:28 +0000 |
parents | af0a1be87264 |
children | 562a4f76fb53 |
files | dvd_reader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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" */