summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-10-06 07:32:52 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-10-06 07:32:52 +0200
commitea16ced823ca807d40dbf9c73a5af22af24021a5 (patch)
tree115678c02c7e79747371990c407dcb390ebef07c /src/hdaccess.c
parentfd56b0906ff6abc5ca41a7521affdc5737a9a6bc (diff)
Scan for the first 20 disks under Mac OS X instead of 10 (fix)
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index 9385276..622bdf1 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -272,18 +272,16 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct
#elif defined(__APPLE__)
{
char device[100];
- char device_scsi[]="/dev/disk0";
- char device_raw[]="/dev/rdisk0";
/* Disk */
for(i=0;i<20;i++)
{
snprintf(device, sizeof(device), "/dev/disk%u", i);
- list_disk=insert_new_disk(list_disk,file_test_availability(device_scsi,verbose,arch,testdisk_mode));
+ list_disk=insert_new_disk(list_disk,file_test_availability(device, verbose, arch, testdisk_mode));
}
for(i=0;i<20;i++)
{
snprintf(device, sizeof(device), "/dev/rdisk%u", i);
- list_disk=insert_new_disk(list_disk,file_test_availability(device_raw,verbose,arch,testdisk_mode));
+ list_disk=insert_new_disk(list_disk,file_test_availability(device, verbose, arch, testdisk_mode));
}
}
#elif defined(TARGET_LINUX)