diff options
author | (no author) <(no author)@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-03-15 05:59:50 +0800 |
---|---|---|
committer | (no author) <(no author)@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-03-15 05:59:50 +0800 |
commit | 73cb2357a7c7f905403cf41592bcbd7286fd85ae (patch) | |
tree | 2f5e26903a1f136a9e2f54af42475b280a215a6d /sysutils/gnomesystemmonitor/files/patch-src_util.c | |
parent | fd170dfee433454a5e1f74c295bf23f3835894c0 (diff) | |
download | marcuscom-ports-GNOME_2_6.tar marcuscom-ports-GNOME_2_6.tar.gz marcuscom-ports-GNOME_2_6.tar.bz2 marcuscom-ports-GNOME_2_6.tar.lz marcuscom-ports-GNOME_2_6.tar.xz marcuscom-ports-GNOME_2_6.tar.zst marcuscom-ports-GNOME_2_6.zip |
This commit was manufactured by cvs2svn to create branch 'GNOME_2_6'.GNOME_2_6
git-svn-id: svn://creme-brulee.marcuscom.com/ports/branches/GNOME_2_6@2058 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnomesystemmonitor/files/patch-src_util.c')
-rw-r--r-- | sysutils/gnomesystemmonitor/files/patch-src_util.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sysutils/gnomesystemmonitor/files/patch-src_util.c b/sysutils/gnomesystemmonitor/files/patch-src_util.c deleted file mode 100644 index 288ccc26a..000000000 --- a/sysutils/gnomesystemmonitor/files/patch-src_util.c +++ /dev/null @@ -1,34 +0,0 @@ ---- src/util.c.orig Fri Dec 12 02:26:57 2003 -+++ src/util.c Fri Dec 12 02:35:38 2003 -@@ -16,6 +16,7 @@ - - #ifdef __FreeBSD__ - # include <errno.h> -+# include <termios.h> - # include <libutil.h> - #endif - -@@ -181,7 +182,11 @@ - * Make su think we're sending the password from a terminal: - */ - -+#ifndef __FreeBSD__ - if (((t_fd = OPEN_TTY()) < 0) || (grantpt(t_fd) < 0) || (unlockpt(t_fd) < 0)) { -+#else -+ if ((t_fd = OPEN_TTY()) < 0) { -+#endif - fprintf (stderr, "Unable to open a terminal\n"); - ABORT (root); - } -@@ -259,7 +264,11 @@ - } - } - -+#ifndef __FreeBSD__ - if(((pts = ptsname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) { -+#else -+ if (((pts = ttyname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) { -+#endif - perror ("Unable to open pseudo slave terminal"); - _exit (-1); - } |