]> git.pld-linux.org Git - packages/mingetty.git/commitdiff
fd49e7ee733afaaacca67c33903cae25 mingetty-autologin-remove-restrictions.patch
authorbonkey <bonkey@bonkey.pl.eu.org>
Sun, 29 Apr 2001 18:11:59 +0000 (18:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mingetty-autologin-remove-restrictions.patch -> 1.1

mingetty-autologin-remove-restrictions.patch [new file with mode: 0644]

diff --git a/mingetty-autologin-remove-restrictions.patch b/mingetty-autologin-remove-restrictions.patch
new file mode 100644 (file)
index 0000000..3540a52
--- /dev/null
@@ -0,0 +1,32 @@
+diff -Nru mingetty-0.9.4.orig/mingetty.c mingetty-0.9.4/mingetty.c
+--- mingetty-0.9.4.orig/mingetty.c     Sun Apr 29 20:01:16 2001
++++ mingetty-0.9.4/mingetty.c  Sun Apr 29 20:04:59 2001
+@@ -65,7 +65,7 @@
+ /* AUTO_TTY is the tty on which autologins will be accepted.  If set
+    to an empty string, autologins will be accepted on any tty. */
+-#define AUTO_TTY "tty1"
++#define AUTO_TTY ""
+ #include <sys/param.h>
+ #define USE_SYSLOG
+@@ -461,10 +461,15 @@
+            a persistent record of the last time that an autologin
+            request was granted.  Deny the autologin request if either
+            the file open or file close fails. */
+-      if ((fd=open(AUTO_LAST, O_WRONLY | O_CREAT | O_TRUNC, 0644)) < 0)
+-              return 0;
+-      if (close(fd) != 0)
+-              return 0;
++
++   /* 
++    * bonkey: well, i need to autologin on 8 consoles, so don't
++    * bother me with such stuff :-> 
++    */
++//    if ((fd=open(AUTO_LAST, O_WRONLY | O_CREAT | O_TRUNC, 0644)) < 0)
++//            return 0;
++//    if (close(fd) != 0)
++//            return 0;
+       /* All tests are okay, so grant the autologin request. */
+       return 1;
This page took 0.120065 seconds and 4 git commands to generate.