Commit 8c6757a6 authored by Erik Hovland's avatar Erik Hovland

Fix the test of whether disk names should be raw devices

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.
parent bba0c7da
......@@ -319,7 +319,7 @@ static char *bsd_block2char( const char *path )
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" */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment