assume the partition offset is zero when the device name terminates with /raw

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-03-29 12:59:12 +00:00
parent e146dee317
commit efb7e1703e
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ main(int argc, const char *const *argv)
#ifdef __BEOS__
// get a partition info
if (!noPartition) {
if (!noPartition && strncmp("/raw", fileName + strlen(fileName) - 4, 4)) {
partition_info partitionInfo;
if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo) == 0) {
partitionOffset = partitionInfo.offset;