svn commit: r266539 - head/usr.bin/lock

Aleksandr Rybalko ray at FreeBSD.org
Thu May 22 09:28:37 UTC 2014


Author: ray
Date: Thu May 22 09:28:36 2014
New Revision: 266539
URL: http://svnweb.freebsd.org/changeset/base/266539

Log:
  Rollback r266496.
  Different meaning of flags for lock(1) and vidcontrol(1) confuse me.
  
  Pointy hat to:	ray
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.bin/lock/lock.c

Modified: head/usr.bin/lock/lock.c
==============================================================================
--- head/usr.bin/lock/lock.c	Thu May 22 07:27:04 2014	(r266538)
+++ head/usr.bin/lock/lock.c	Thu May 22 09:28:36 2014	(r266539)
@@ -121,7 +121,7 @@ main(int argc, char **argv)
 			no_timeout = 1;
 			break;
 		case 'v':
-			vtylock = 0x2;
+			vtylock = 1;
 			break;
 		case '?':
 		default:
@@ -193,7 +193,7 @@ main(int argc, char **argv)
 			(void)tcsetattr(0, TCSADRAIN|TCSASOFT, &tty);
 			err(1, "locking vty");
 		}
-		vtyunlock = 0x1;
+		vtyunlock = 0x2;
 	}
 
 	/* header info */


More information about the svn-src-head mailing list