File: getty-noclear

package info (click to toggle)
hurd 1%3A0.9.git20251029-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 37,160 kB
  • sloc: ansic: 539,358; sh: 5,143; asm: 2,998; makefile: 2,303; perl: 589; pascal: 484; awk: 157
file content (20 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Ignore --noclear passed by sysvinit since version 2.95-5

diff --git a/daemons/getty.c b/daemons/getty.c
index 40ad4d73..cfa5b71d 100644
--- a/daemons/getty.c
+++ b/daemons/getty.c
@@ -160,6 +160,13 @@ main (int argc, char **argv)
 
   openlog ("getty", LOG_ODELAY|LOG_CONS|LOG_PID, LOG_AUTH);
 
+  if (argc > 1)
+    if (strcmp(argv[1], "--noclear") == 0)
+      {
+	argc--;
+	argv++;
+      }
+
   /* Nothing to do .... */
   if (argc != 3)
     {