svn commit: r256133 - head/sbin/camcontrol

Mark Johnston markj at FreeBSD.org
Tue Oct 8 04:16:23 UTC 2013


Author: markj
Date: Tue Oct  8 04:16:22 2013
New Revision: 256133
URL: http://svnweb.freebsd.org/changeset/base/256133

Log:
  Fix an inverted check for the master user in "camcontrol security -U".
  
  PR:		bin/182703
  Submitted by:	Scott Burns <scott at bqinternet.com>
  Approved by:	re (gjb)
  MFC after:	3 days

Modified:
  head/sbin/camcontrol/camcontrol.c

Modified: head/sbin/camcontrol/camcontrol.c
==============================================================================
--- head/sbin/camcontrol/camcontrol.c	Tue Oct  8 01:38:24 2013	(r256132)
+++ head/sbin/camcontrol/camcontrol.c	Tue Oct  8 04:16:22 2013	(r256133)
@@ -2748,7 +2748,7 @@ atasecurity(struct cam_device *device, i
 			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 {


More information about the svn-src-all mailing list