Fix an inverted check for the master user in "camcontrol security -U".
PR: bin/182703 Submitted by: Scott Burns <scott@bqinternet.com> Approved by: re (gjb) MFC after: 3 days
This commit is contained in:
parent
6eb151f212
commit
e590690fad
@ -2748,7 +2748,7 @@ atasecurity(struct cam_device *device, int retry_count, int timeout,
|
||||
if (strcasecmp(optarg, "user") == 0) {
|
||||
pwd.ctrl |= ATA_SECURITY_PASSWORD_USER;
|
||||
pwd.ctrl &= ~ATA_SECURITY_PASSWORD_MASTER;
|
||||
} else if (strcasecmp(optarg, "master") != 0) {
|
||||
} else if (strcasecmp(optarg, "master") == 0) {
|
||||
pwd.ctrl |= ATA_SECURITY_PASSWORD_MASTER;
|
||||
pwd.ctrl &= ~ATA_SECURITY_PASSWORD_USER;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user