diff options
author | Cy Schubert <cy@FreeBSD.org> | 2007-01-05 22:31:58 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2007-01-05 22:31:58 +0000 |
commit | 64214e1ab1f5a0b0c1e952ab9535f72f5f4411ca (patch) | |
tree | 4cfaa5821654087693628fc6904e7b3ad8d9e242 /security/sudosh2 | |
parent | 4a3e13ee7244b92274b50fda3c8b94e4761ad408 (diff) | |
download | ports-64214e1ab1f5a0b0c1e952ab9535f72f5f4411ca.tar.gz ports-64214e1ab1f5a0b0c1e952ab9535f72f5f4411ca.zip |
Notes
Diffstat (limited to 'security/sudosh2')
-rw-r--r-- | security/sudosh2/Makefile | 2 | ||||
-rw-r--r-- | security/sudosh2/files/patch-src::sudosh.c | 16 |
2 files changed, 8 insertions, 10 deletions
diff --git a/security/sudosh2/Makefile b/security/sudosh2/Makefile index 06ed10922bbd..1ee670dc6228 100644 --- a/security/sudosh2/Makefile +++ b/security/sudosh2/Makefile @@ -7,7 +7,7 @@ PORTNAME= sudosh PORTVERSION= 1.8.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} diff --git a/security/sudosh2/files/patch-src::sudosh.c b/security/sudosh2/files/patch-src::sudosh.c index 7f6da6fe8f0e..0c79a345cfc4 100644 --- a/security/sudosh2/files/patch-src::sudosh.c +++ b/security/sudosh2/files/patch-src::sudosh.c @@ -1,5 +1,5 @@ --- src/sudosh.c.orig Sun Jun 12 19:35:07 2005 -+++ src/sudosh.c Thu Jan 4 08:29:43 2007 ++++ src/sudosh.c Fri Jan 5 14:14:05 2007 @@ -28,6 +28,13 @@ #define WRITE(a, b, c) do_write(a, b, c, __FILE__, __LINE__) @@ -14,7 +14,7 @@ static struct termios termorig; static struct winsize winorig; -@@ -545,19 +552,45 @@ +@@ -545,19 +552,43 @@ { char *sname; @@ -52,15 +52,13 @@ +#if !defined(__FreeBSD_version) || (defined(__FreeBSD_version) && __FreeBSD_version >= 500000) (void) unlockpt (p->mfd); (void) grantpt (p->mfd); -+#endif -+#ifndef __FreeBSD__ sname = (char *) ptsname (p->mfd); +#endif if ((p->sfd = open (sname, O_RDWR)) == -1) { -@@ -619,9 +652,14 @@ +@@ -619,9 +650,14 @@ for (i = 3; i < 100; ++i) close (i); @@ -75,7 +73,7 @@ (void) ioctl (0, TIOCSWINSZ, &winorig); setuid (getuid ()); -@@ -663,6 +701,13 @@ +@@ -663,6 +699,13 @@ { static struct termios termnew; @@ -89,7 +87,7 @@ #ifdef TCGETS if (ioctl (ttyfd, TCGETS, &termorig) == -1) { -@@ -670,6 +715,7 @@ +@@ -670,6 +713,7 @@ exit (EXIT_FAILURE); } #endif @@ -97,7 +95,7 @@ if (ioctl (ttyfd, TIOCGWINSZ, &winorig) == -1) { -@@ -677,6 +723,11 @@ +@@ -677,6 +721,11 @@ exit (EXIT_FAILURE); } @@ -109,7 +107,7 @@ termnew.c_cc[VEOF] = 1; termnew.c_iflag = BRKINT | ISTRIP | IXON | IXANY; termnew.c_oflag = 0; -@@ -686,13 +737,19 @@ +@@ -686,13 +735,19 @@ #ifdef TCSETS (void) ioctl (ttyfd, TCSETS, &termnew); #endif |