Permalink
Browse files

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
  • Loading branch information...
1 parent 038b37b commit 41bda5b66a85fa1d81383cb9d4cea33a31a88a61 @markjdb markjdb committed Oct 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sbin/camcontrol/camcontrol.c
@@ -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 {

0 comments on commit 41bda5b

Please sign in to comment.