mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue