Change console.lock path to /var/run/console/

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-04-18 17:16:50 -03:00
1 parent 996cb2ec1e
commit fa23155593
1 file changed
+1 -1
+1 -1
View File
@@ -271,7 +271,7 @@ int main()
touch("/var/run/console/" DEFUSER);
#ifdef PAM_CONSOLE
if ((fd = open("/var/run/console.lock", O_CREAT|O_WRONLY|O_TRUNC, 0644)) >= 0) {
if ((fd = open("/var/run/console/console.lock", O_CREAT|O_WRONLY|O_TRUNC, 0644)) >= 0) {
write(fd, DEFUSER, strlen(DEFUSER));
close(fd);
system("/sbin/pam_console_apply");