- up to 1.0.0
[packages/aterm.git] / aterm-utempter.patch
1 diff -ur aterm-0.3.6.orig/src/command.c aterm-0.3.6/src/command.c
2 --- aterm-0.3.6.orig/src/command.c      Mon May 10 12:44:15 1999
3 +++ aterm-0.3.6/src/command.c   Fri Jul 16 15:13:45 1999
4 @@ -423,9 +423,8 @@
5      signal(sig, SIG_DFL);
6  
7  #ifdef UTMP_SUPPORT
8 -    privileges(RESTORE);
9 -    cleanutent();
10 -    privileges(IGNORE);
11 +      if (!(Options & Opt_utmpInhibit))
12 +       removeFromUtmp();
13  #endif
14  
15      kill(getpid(), sig);
16 @@ -450,7 +449,8 @@
17      chown(ttydev, ttyfd_stat.st_uid, ttyfd_stat.st_gid);
18  #endif
19  #ifdef UTMP_SUPPORT
20 -    cleanutent();
21 +      if (!(Options & Opt_utmpInhibit))
22 +       removeFromUtmp();
23  #endif
24      privileges(IGNORE);
25  }
26 @@ -1054,10 +1054,8 @@
27         exit(EXIT_FAILURE);
28      }
29  #ifdef UTMP_SUPPORT
30 -    privileges(RESTORE);
31      if (!(Options & Opt_utmpInhibit))
32 -       makeutent(ttydev, display_name);        /* stamp /etc/utmp */
33 -    privileges(IGNORE);
34 +       addToUtmp(ttydev, display_name, ptyfd);
35  #endif
36  
37      return ptyfd;
This page took 0.031619 seconds and 3 git commands to generate.