Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2014 09:28:37 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266539 - head/usr.bin/lock
Message-ID:  <201405220928.s4M9Sbvo043178@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405220928.s4M9Sbvo043178>