rpms/quota/FC-6 quota-3.13-wrong-ports.patch, NONE, 1.1 quota.spec, 1.28, 1.29

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Nov 1 20:25:51 UTC 2006


Author: steved

Update of /cvs/dist/rpms/quota/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv29162

Modified Files:
	quota.spec 
Added Files:
	quota-3.13-wrong-ports.patch 
Log Message:
Added range checking on -p flag (bz 205145)


quota-3.13-wrong-ports.patch:
 rquota_svc.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE quota-3.13-wrong-ports.patch ---
--- quota-tools/rquota_svc.c.orig	2005-06-01 03:21:30.000000000 -0400
+++ quota-tools/rquota_svc.c	2006-11-01 15:11:29.161101000 -0500
@@ -140,7 +140,7 @@ static void parse_options(int argc, char
 				break;
 			case 'p': 
 				port = strtol(optarg, &endptr, 0);
-				if (*endptr || port <= 0) {
+				if (*endptr || port <= 0 || port > 0xffff) {
 					errstr(_("Illegal port number: %s\n"), optarg);
 					show_help();
 					exit(1);


Index: quota.spec
===================================================================
RCS file: /cvs/dist/rpms/quota/FC-6/quota.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- quota.spec	12 Jul 2006 07:57:41 -0000	1.28
+++ quota.spec	1 Nov 2006 20:25:49 -0000	1.29
@@ -2,7 +2,7 @@
 Summary: System administration tools for monitoring users' disk usage.
 Epoch: 1
 Version: 3.13
-Release: 1.2.3.1
+Release: 1.2.3.2
 License: BSD
 URL: http://sourceforge.net/projects/linuxquota/
 Group: System Environment/Base
@@ -15,6 +15,7 @@
 Patch1: quota-3.06-no-stripping.patch
 Patch2: quota-3.06-man-page.patch
 Patch3: quota-3.06-pie.patch
+Patch4: quota-3.13-wrong-ports.patch
 
 
 %description
@@ -30,6 +31,7 @@
 %ifnarch ppc ppc64
 %patch3 -p1
 %endif
+%patch4 -p1
 
 
 %build
@@ -78,6 +80,9 @@
 
 
 %changelog
+* Wed Nov  1 2006 Steve Dickson <SteveD at RedHat.com> 1:3.13-1.2.3.2
+- Added range checking on -p flag (bz 205145)
+
 * Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 1:3.13-1.2.3.1
 - rebuild
 




More information about the fedora-cvs-commits mailing list