summaryrefslogtreecommitdiff
path: root/usr.bin/lock
diff options
context:
space:
mode:
authorAleksandr Rybalko <ray@FreeBSD.org>2014-05-22 09:28:36 +0000
committerAleksandr Rybalko <ray@FreeBSD.org>2014-05-22 09:28:36 +0000
commitb8a7acdf7b0e03347ec444ce940df46bafb15af3 (patch)
tree1d109fac09677fee33402aa4e8d61c51dd30ba54 /usr.bin/lock
parentee652839f696bd529f355c801cb7db3e8ff3b17a (diff)
downloadsrc-test2-b8a7acdf7b0e03347ec444ce940df46bafb15af3.tar.gz
src-test2-b8a7acdf7b0e03347ec444ce940df46bafb15af3.zip
Rollback r266496.
Different meaning of flags for lock(1) and vidcontrol(1) confuse me. Pointy hat to: ray Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=266539
Diffstat (limited to 'usr.bin/lock')
-rw-r--r--usr.bin/lock/lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c
index 376f36c4bef4..acc0e29d62d8 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 */