]> git.pld-linux.org Git - packages/aterm.git/commitdiff
patchset for aterm
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 16 Jul 1999 14:12:08 +0000 (14:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aterm-utempter.patch -> 1.1
    aterm-wtmp.patch -> 1.1
    aterm.desktop -> 1.1

aterm-utempter.patch [new file with mode: 0644]
aterm-wtmp.patch [new file with mode: 0644]
aterm.desktop [new file with mode: 0644]

diff --git a/aterm-utempter.patch b/aterm-utempter.patch
new file mode 100644 (file)
index 0000000..23abe3f
--- /dev/null
@@ -0,0 +1,37 @@
+diff -ur aterm-0.3.6.orig/src/command.c aterm-0.3.6/src/command.c
+--- aterm-0.3.6.orig/src/command.c     Mon May 10 12:44:15 1999
++++ aterm-0.3.6/src/command.c  Fri Jul 16 15:13:45 1999
+@@ -423,9 +423,8 @@
+     signal(sig, SIG_DFL);
+ #ifdef UTMP_SUPPORT
+-    privileges(RESTORE);
+-    cleanutent();
+-    privileges(IGNORE);
++      if (!(Options & Opt_utmpInhibit))
++      removeFromUtmp();
+ #endif
+     kill(getpid(), sig);
+@@ -450,7 +449,8 @@
+     chown(ttydev, ttyfd_stat.st_uid, ttyfd_stat.st_gid);
+ #endif
+ #ifdef UTMP_SUPPORT
+-    cleanutent();
++      if (!(Options & Opt_utmpInhibit))
++      removeFromUtmp();
+ #endif
+     privileges(IGNORE);
+ }
+@@ -1054,10 +1054,8 @@
+       exit(EXIT_FAILURE);
+     }
+ #ifdef UTMP_SUPPORT
+-    privileges(RESTORE);
+     if (!(Options & Opt_utmpInhibit))
+-      makeutent(ttydev, display_name);        /* stamp /etc/utmp */
+-    privileges(IGNORE);
++      addToUtmp(ttydev, display_name, ptyfd);
+ #endif
+     return ptyfd;
diff --git a/aterm-wtmp.patch b/aterm-wtmp.patch
new file mode 100644 (file)
index 0000000..ac4d30b
--- /dev/null
@@ -0,0 +1,21 @@
+diff -ur aterm-0.3.6.orig/src/utmp.c aterm-0.3.6/src/utmp.c
+--- aterm-0.3.6.orig/src/utmp.c        Fri Aug 28 03:29:14 1998
++++ aterm-0.3.6/src/utmp.c     Fri Jul 16 15:40:07 1999
+@@ -229,7 +229,7 @@
+     pututline(&utmp);
+ #ifdef WTMP_SUPPORT
+-    update_wtmp(WTMP_FILENAME, &utmp);
++    update_wtmp(_PATH_WTMP, &utmp);
+ #endif
+     endutent();                       /* close the file */
+@@ -288,7 +288,7 @@
+     pututline(putmp);
+ #ifdef WTMP_SUPPORT
+-    update_wtmp(WTMP_FILENAME, putmp);
++    update_wtmp(_PATH_WTMP, putmp);
+ #endif
+     endutent();
diff --git a/aterm.desktop b/aterm.desktop
new file mode 100644 (file)
index 0000000..19f28e4
--- /dev/null
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=Aterm
+Comment=Small, fast X terminal application
+Exec=aterm &
+Terminal=0
+Type=Application
This page took 0.0562 seconds and 4 git commands to generate.