Skip to content

Commit

Permalink
Fix hard-coded /dev/sda @dkl PR#262
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl authored and r0m30 committed Aug 15, 2021
1 parent 9cd23b0 commit e474572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/DtaDevLinuxSata.cpp
Expand Up @@ -67,7 +67,7 @@ bool DtaDevLinuxSata::init(const char * devref)
LOG(D1) << "Creating DtaDevLinuxSata::DtaDev() " << devref;
bool isOpen = FALSE;

if(access("/dev/sda", R_OK | W_OK)) {
if (access(devref, R_OK | W_OK)) {
LOG(E) << "You do not have permission to access the raw disk in write mode";
LOG(E) << "Perhaps you might try sudo to run as root";
}
Expand Down

0 comments on commit e474572

Please sign in to comment.