From 578c86e590079684063c0c964b652a243f4bae4f Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 6 Jan 2007 22:42:50 +0000 Subject: Fix SIBGUS and SIGSEGV violations on amd64 platform. --- security/sudosh/Makefile | 2 +- security/sudosh/files/patch-src-parse.c | 12 ++++++++++++ security/sudosh2/Makefile | 2 +- security/sudosh2/files/patch-src-parse.c | 12 ++++++++++++ security/sudosh3/Makefile | 2 +- security/sudosh3/files/patch-src-parse.c | 12 ++++++++++++ 6 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 security/sudosh/files/patch-src-parse.c create mode 100644 security/sudosh2/files/patch-src-parse.c create mode 100644 security/sudosh3/files/patch-src-parse.c (limited to 'security') diff --git a/security/sudosh/Makefile b/security/sudosh/Makefile index 1ee670dc622..e63bfdd9f01 100644 --- a/security/sudosh/Makefile +++ b/security/sudosh/Makefile @@ -7,7 +7,7 @@ PORTNAME= sudosh PORTVERSION= 1.8.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} diff --git a/security/sudosh/files/patch-src-parse.c b/security/sudosh/files/patch-src-parse.c new file mode 100644 index 00000000000..646cb65d323 --- /dev/null +++ b/security/sudosh/files/patch-src-parse.c @@ -0,0 +1,12 @@ +--- src/parse.c.orig Sun Jun 12 16:22:42 2005 ++++ src/parse.c Fri Jan 5 17:54:55 2007 +@@ -19,7 +19,8 @@ + void parse(option * o, const char *file) + { + FILE *f = fopen(file, "r"); +- unsigned int line_number, i; ++ unsigned int line_number; ++ int i; + char line[BUFSIZ]; + char *arg, *cmt, *opt; + config *scan; diff --git a/security/sudosh2/Makefile b/security/sudosh2/Makefile index 1ee670dc622..e63bfdd9f01 100644 --- a/security/sudosh2/Makefile +++ b/security/sudosh2/Makefile @@ -7,7 +7,7 @@ PORTNAME= sudosh PORTVERSION= 1.8.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} diff --git a/security/sudosh2/files/patch-src-parse.c b/security/sudosh2/files/patch-src-parse.c new file mode 100644 index 00000000000..646cb65d323 --- /dev/null +++ b/security/sudosh2/files/patch-src-parse.c @@ -0,0 +1,12 @@ +--- src/parse.c.orig Sun Jun 12 16:22:42 2005 ++++ src/parse.c Fri Jan 5 17:54:55 2007 +@@ -19,7 +19,8 @@ + void parse(option * o, const char *file) + { + FILE *f = fopen(file, "r"); +- unsigned int line_number, i; ++ unsigned int line_number; ++ int i; + char line[BUFSIZ]; + char *arg, *cmt, *opt; + config *scan; diff --git a/security/sudosh3/Makefile b/security/sudosh3/Makefile index 1ee670dc622..e63bfdd9f01 100644 --- a/security/sudosh3/Makefile +++ b/security/sudosh3/Makefile @@ -7,7 +7,7 @@ PORTNAME= sudosh PORTVERSION= 1.8.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} diff --git a/security/sudosh3/files/patch-src-parse.c b/security/sudosh3/files/patch-src-parse.c new file mode 100644 index 00000000000..646cb65d323 --- /dev/null +++ b/security/sudosh3/files/patch-src-parse.c @@ -0,0 +1,12 @@ +--- src/parse.c.orig Sun Jun 12 16:22:42 2005 ++++ src/parse.c Fri Jan 5 17:54:55 2007 +@@ -19,7 +19,8 @@ + void parse(option * o, const char *file) + { + FILE *f = fopen(file, "r"); +- unsigned int line_number, i; ++ unsigned int line_number; ++ int i; + char line[BUFSIZ]; + char *arg, *cmt, *opt; + config *scan; -- cgit