mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Change console.lock path to /var/run/console/
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
996cb2ec1e
commit
fa23155593
1 file changed
+1
-1
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user