OSDN Git Service

openvt tries opening several devices to get an fd that points to the current console...
authorIsaac Dunham <ibid.ag@gmail.com>
Fri, 4 Apr 2014 03:43:28 +0000 (22:43 -0500)
committerIsaac Dunham <ibid.ag@gmail.com>
Fri, 4 Apr 2014 03:43:28 +0000 (22:43 -0500)
commit6f9d481062e171fb0bd1aa5cdcf043c0e4f9d733
tree2b50fcc1648c7b92e0e3659f0793642230f9d411
parent547c8d980bb5ae37f8002aead4e155cc5554dfca
openvt tries opening several devices to get an fd that points to the current console, without a need for read or write permissions. O_RDWR implies that both O_RDONLY and O_WRONLY would work, so skip it. Reindent.
toys/pending/deallocvt.c
toys/pending/openvt.c