diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-04-30 09:41:24 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-04-30 09:41:24 +0800 |
commit | 2c04e2178d3ccce17af9d227a165f4025e1baf27 (patch) | |
tree | a95d6ef7b169e6753fca6a89006355f69851345e /sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c | |
parent | 97baa1cd09aa858ef3a8e9ad473cc43e7dcacebb (diff) | |
download | marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.tar marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.tar.gz marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.tar.bz2 marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.tar.lz marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.tar.xz marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.tar.zst marcuscom-ports-2c04e2178d3ccce17af9d227a165f4025e1baf27.zip |
Remove these ports now that they are in the ports tree.
Next stop, GNOME 2.15.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6155 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c')
-rw-r--r-- | sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c b/sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c deleted file mode 100644 index f73b28ae4..000000000 --- a/sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c +++ /dev/null @@ -1,110 +0,0 @@ ---- src/common/gst-auth.c.orig Mon Aug 8 15:00:01 2005 -+++ src/common/gst-auth.c Sat Sep 10 01:47:35 2005 -@@ -55,6 +55,82 @@ - static int root; /* if we are root, no password is - required */ - -+#ifdef __FreeBSD__ -+static int -+_forkpty (int *amaster, char *name, -+ struct termios *termp, struct winsize *winp) -+{ -+ int master, slave; -+ char *line; -+ pid_t pid; -+ -+ master = posix_openpt (O_RDWR); -+ if (master == -1) -+ return (-1); -+ -+ if (grantpt (master) == -1) -+ { -+ (void) close (master); -+ return (-1); -+ } -+ -+ if (unlockpt (master) == -1) -+ { -+ (void) close (master); -+ return (-1); -+ } -+ -+ line = ptsname (master); -+ if (line == NULL) -+ { -+ (void) close (master); -+ return (-1); -+ } -+ -+ slave = open (line, O_RDWR); -+ if (slave < 0) -+ { -+ (void) close (master); -+ return (-1); -+ } -+ -+ if (amaster) -+ *amaster = master; -+ -+ if (name) -+ strcpy (name, line); -+ -+ if (termp) -+ (void) tcsetattr(slave, TCSAFLUSH, termp); -+ -+ if (winp) -+ (void) ioctl(slave, TIOCSWINSZ, (char *) winp); -+ -+ pid = fork (); -+ switch (pid) -+ { -+ case -1: -+ (void) close (slave); -+ (void) close (master); -+ return (-1); -+ case 0: -+ (void) close (master); -+ dup2 (slave, STDIN_FILENO); -+ dup2 (slave, STDOUT_FILENO); -+ dup2 (slave, STDERR_FILENO); -+ return (0); -+ default: -+ (void) close (slave); -+ return (pid); -+ } -+ -+ (void) close (master); -+ return (-1); -+} -+#else -+#define _forkpty forkpty -+#endif -+ - static void - gst_auth_display_error_message (GstTool *tool, gchar *primary_text, gchar *secondary_text) - { -@@ -125,7 +201,7 @@ gst_auth_run_term (GstTool *tool, gchar - int p[2]; - - pipe (p); -- tool->backend_pid = forkpty (&tool->write_fd, NULL, NULL, NULL); -+ tool->backend_pid = _forkpty (&tool->write_fd, NULL, NULL, NULL); - - if (tool->backend_pid < 0) { - gst_auth_display_error_message (tool, -@@ -142,12 +218,12 @@ gst_auth_run_term (GstTool *tool, gchar - unsetenv("LANG"); - unsetenv("LANGUAGE"); - -- dup2 (p[1], 1); -- dup2 (p[1], 2); -+ dup2 (p[1], STDOUT_FILENO); -+ dup2 (p[1], STDERR_FILENO); - close (p[0]); - - execv (args[0], args); -- exit (255); -+ _exit (255); - } else { - #ifndef __FreeBSD__ - /* Linux's su works ok with echo disabling */ |