[packages/prtunnel] Builds

arekm arekm at pld-linux.org
Mon Mar 9 18:03:08 CET 2026


commit 4153de36abbfc5441b5fbc8220c6cb29819061bc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 18:02:55 2026 +0100

    Builds

 prtunnel-format-security.patch | 15 +++++++++++++++
 prtunnel-warnings.patch        | 21 +++++++++++++++++++++
 prtunnel.spec                  |  4 ++++
 3 files changed, 40 insertions(+)
---
diff --git a/prtunnel.spec b/prtunnel.spec
index 4d2c49f..e9f2586 100644
--- a/prtunnel.spec
+++ b/prtunnel.spec
@@ -8,6 +8,8 @@ Group:		Daemons
 Source0:	http://www.joshbeam.com/files/%{name}-%{version}.tar.gz
 # Source0-md5:	5762a31a4a957c18e52e60cab289ea34
 URL:		http://www.joshbeam.com/software/prtunnel.php
+Patch0:		prtunnel-format-security.patch
+Patch1:		prtunnel-warnings.patch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -43,6 +45,8 @@ zastosowania obejmują:
 
 %prep
 %setup -q
+%patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__make} \
diff --git a/prtunnel-format-security.patch b/prtunnel-format-security.patch
new file mode 100644
index 0000000..2701013
--- /dev/null
+++ b/prtunnel-format-security.patch
@@ -0,0 +1,15 @@
+--- prtunnel-0.2.7.orig/main.c	2006-03-12 20:02:19.000000000 +0100
++++ prtunnel-0.2.7/main.c	2026-03-09 17:53:13.042521654 +0100
+@@ -250,10 +250,10 @@
+ 				add_trusted_address(optarg);
+ 				break;
+ 			case 'u':
+-				snprintf(username, USERNAME_MAX, optarg);
++				snprintf(username, USERNAME_MAX, "%s", optarg);
+ 				break;
+ 			case 'p':
+-				snprintf(password, PASSWORD_MAX, optarg);
++				snprintf(password, PASSWORD_MAX, "%s", optarg);
+ 				break;
+ 		}
+ 	}
diff --git a/prtunnel-warnings.patch b/prtunnel-warnings.patch
new file mode 100644
index 0000000..85d7caa
--- /dev/null
+++ b/prtunnel-warnings.patch
@@ -0,0 +1,21 @@
+--- prtunnel-0.2.7.orig/proxy.c	2006-03-12 20:14:17.000000000 +0100
++++ prtunnel-0.2.7/proxy.c	2026-03-09 18:00:52.311063709 +0100
+@@ -697,7 +697,7 @@
+ 
+ 			if((flags & PRT_IRC_AUTOPONG) && strncmp(s, "PING :", 6) == 0) {
+ 				int j;
+-				char tmp[512];
++				char tmp[513];
+ 				char *servname;
+ 
+ 				for(j = i + 1; s[j] != '\n' && j < len - 1; j++)
+@@ -1112,7 +1112,8 @@
+ 		}
+ 
+ 		setsid();
+-		chdir("/");
++		if(chdir("/") != 0)
++			perror("chdir");
+ 	}
+ #endif /* _WIN32 */
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/prtunnel.git/commitdiff/4153de36abbfc5441b5fbc8220c6cb29819061bc



More information about the pld-cvs-commit mailing list