OSDN Git Service

OS X: fixed raw device size detection. Each disk has two names: /dev/diskN (block...
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sat, 15 Dec 2012 08:45:00 +0000 (08:45 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sat, 15 Dec 2012 08:45:00 +0000 (08:45 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@309 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/io.c

index e9672fb..e7dcd79 100644 (file)
@@ -147,7 +147,7 @@ struct exfat_dev* exfat_open(const char* spec, enum exfat_mode mode)
        }
 
 #ifdef __APPLE__
-       if (S_ISBLK(stbuf.st_mode))
+       if (!S_ISREG(stbuf.st_mode))
        {
                uint32_t block_size = 0;
                uint64_t blocks = 0;