From 4eb3bf8079dc37a586edf49aed22b3159fdfc06b Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 22 May 2014 09:28:36 +0000 Subject: Rollback r266496. Different meaning of flags for lock(1) and vidcontrol(1) confuse me. Pointy hat to: ray Sponsored by: The FreeBSD Foundation --- usr.bin/lock/lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/lock') diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c index 376f36c..acc0e29 100644 --- a/usr.bin/lock/lock.c +++ b/usr.bin/lock/lock.c @@ -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 */ -- cgit v1.1