diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-15 06:16:49 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-15 06:16:49 +0000 |
commit | c7975ea767a9c74340ff40ec7f976e1e157f3e46 (patch) | |
tree | 7b05fd1978b2ef6def38e8d104b6e99751b9eab0 /emulators | |
parent | d380d8cedf0f2a0c4f33a377d63e88bf98f26660 (diff) |
Notes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/extract-xiso/Makefile | 4 | ||||
-rw-r--r-- | emulators/extract-xiso/distinfo | 6 | ||||
-rw-r--r-- | emulators/extract-xiso/files/patch-extract-xiso.c | 22 | ||||
-rw-r--r-- | emulators/extract-xiso/files/patch-libftp-5.0.1.modified.by.in__FtpStat.c | 44 |
4 files changed, 10 insertions, 66 deletions
diff --git a/emulators/extract-xiso/Makefile b/emulators/extract-xiso/Makefile index b26b058fa6c1..bb45fae18803 100644 --- a/emulators/extract-xiso/Makefile +++ b/emulators/extract-xiso/Makefile @@ -6,11 +6,11 @@ # PORTNAME= extract-xiso -DISTVERSION= 2.4b2 +DISTVERSION= 2.5 CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -DISTNAME= ${PORTNAME}_src_v${DISTVERSION} +DISTNAME= ${PORTNAME}_v${DISTVERSION}_src EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org diff --git a/emulators/extract-xiso/distinfo b/emulators/extract-xiso/distinfo index f212daec82e3..cd2e66783b75 100644 --- a/emulators/extract-xiso/distinfo +++ b/emulators/extract-xiso/distinfo @@ -1,3 +1,3 @@ -MD5 (extract-xiso_src_v2.4b2.tgz) = 6d05fa82f89dc8aaf05201ee15658982 -SHA256 (extract-xiso_src_v2.4b2.tgz) = f17db639c489d4dc28159aef4a59fc05d42d7ee9837aa7a6cb222e6f4890072b -SIZE (extract-xiso_src_v2.4b2.tgz) = 206700 +MD5 (extract-xiso_v2.5_src.tgz) = 1283bb3be0f17bfe511aff86cff0eb76 +SHA256 (extract-xiso_v2.5_src.tgz) = 056bae1d970a1907aebebc796724fc82debac72010e8227f9ce5a470f16714d7 +SIZE (extract-xiso_v2.5_src.tgz) = 207052 diff --git a/emulators/extract-xiso/files/patch-extract-xiso.c b/emulators/extract-xiso/files/patch-extract-xiso.c index 6ea56f909f28..d63ad1e1273d 100644 --- a/emulators/extract-xiso/files/patch-extract-xiso.c +++ b/emulators/extract-xiso/files/patch-extract-xiso.c @@ -1,23 +1,11 @@ ---- extract-xiso.c.orig Fri Sep 30 15:49:47 2005 -+++ extract-xiso.c Fri Sep 30 15:50:29 2005 -@@ -215,7 +215,7 @@ - #include <sys/types.h> +--- extract-xiso.c.orig Sat Jan 28 09:16:25 2006 ++++ extract-xiso.c Sat Mar 4 12:15:59 2006 +@@ -236,7 +236,7 @@ + #if defined( __FREEBSD__ ) - #include <machine/limits.h> + #include <limits.h> #endif - #if ! defined( NO_FTP ) -@@ -1345,6 +1345,11 @@ - if ( ! err ) { - if ( read( in_xiso, dir->filename, dir->filename_length ) != dir->filename_length ) read_err(); - if ( ! err ) dir->filename[ dir->filename_length ] = 0; -+ if (strstr(dir->filename,"..") || strchr(dir->filename, '/') || strchr(dir->filename, '\\')) -+ { -+ printf("Filename contains invalid characters"); -+ exit(1); -+ } - } - - if ( ! err && in_mode == k_generate_avl ) { + diff --git a/emulators/extract-xiso/files/patch-libftp-5.0.1.modified.by.in__FtpStat.c b/emulators/extract-xiso/files/patch-libftp-5.0.1.modified.by.in__FtpStat.c deleted file mode 100644 index ccab2c0b2020..000000000000 --- a/emulators/extract-xiso/files/patch-libftp-5.0.1.modified.by.in__FtpStat.c +++ /dev/null @@ -1,44 +0,0 @@ ---- libftp-5.0.1.modified.by.in/FtpStat.c.orig Fri Sep 30 15:44:08 2005 -+++ libftp-5.0.1.modified.by.in/FtpStat.c Fri Sep 30 15:46:43 2005 -@@ -84,6 +84,7 @@ - register FILE *in; - register FTP_STAT *stat=NULL, *prev=NULL; - register int sys_unix,sys_vms,sys_msdos; -+ int fd; - - *first = NULL; - strcpy(syst,FtpSyst(ftp)); -@@ -94,22 +95,28 @@ - - #if ! defined( _WIN32 ) - sprintf(tmp,"/tmp/%s.XXXXXX",getpwuid(getuid())->pw_name); -- if ( mktemp( tmp ) == -1 ) return EXIT( ftp, LQUIT ); -+ if ( ( fd = mkstemp( tmp ) ) == -1 ) return EXIT( ftp, LQUIT ); -+ close( fd ); - #else - sprintf( tmp, "extract-xiso.tmp.XXXXXX" ); - if ( _mktemp( tmp ) == NULL ) return EXIT( ftp, LQUIT ); - #endif - -- if ( ( tmp2 = strdup( tmp ) ) == NULL ) { errno = ENOMEM; return EXIT( ftp, LQUIT ); } -+ if ( ( tmp2 = strdup( tmp ) ) == NULL ) { -+ errno = ENOMEM; -+ unlink( tmp ); -+ return EXIT( ftp, LQUIT ); -+ } - - if (*patern==0) - FtpRetr(ftp,"LIST","",tmp); - else - FtpRetr(ftp,sys_unix?"LIST -d %s":"LIST %s",patern,tmp); - -- if ( (in=fopen(tmp,"r")) == NULL) -- return EXIT(ftp,LQUIT); -- -+ if ( (in=fopen(tmp,"r")) == NULL) { -+ unlink( tmp ); -+ return EXIT(ftp,LQUIT); -+ } - - while(1) - { |