rpms/vsftpd/devel vsftpd-2.0.5-underscore_uname.patch, NONE, 1.1 vsftpd.spec, 1.70, 1.71

Martin Nagy (mnagy) fedora-extras-commits at redhat.com
Fri Nov 30 12:22:56 UTC 2007


Author: mnagy

Update of /cvs/extras/rpms/vsftpd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4862

Modified Files:
	vsftpd.spec 
Added Files:
	vsftpd-2.0.5-underscore_uname.patch 
Log Message:
* Fri Nov 30 2007 Martin Nagy <mnagy at redhat.com> - 2.0.5-21
- Allow usernames to begin with underscore or dot (#339911).


vsftpd-2.0.5-underscore_uname.patch:

--- NEW FILE vsftpd-2.0.5-underscore_uname.patch ---
diff -up vsftpd-2.0.5/sysutil.c.underscore_uname vsftpd-2.0.5/sysutil.c
--- vsftpd-2.0.5/sysutil.c.underscore_uname	2007-11-30 13:14:50.000000000 +0100
+++ vsftpd-2.0.5/sysutil.c	2007-11-30 13:12:25.000000000 +0100
@@ -905,7 +905,7 @@ vsf_sysutil_isprint(int the_char)
 int
 vsf_sysutil_isalnum(int the_char)
 {
-  return isalnum(the_char);
+  return isalnum(the_char) || the_char == '_' || the_char == '.';
 }
 
 int


Index: vsftpd.spec
===================================================================
RCS file: /cvs/extras/rpms/vsftpd/devel/vsftpd.spec,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- vsftpd.spec	30 Nov 2007 12:03:00 -0000	1.70
+++ vsftpd.spec	30 Nov 2007 12:22:22 -0000	1.71
@@ -45,6 +45,7 @@
 Patch31: vsftpd-2.0.5-write_race.patch
 Patch32: vsftpd-2.0.5-fix_unique.patch
 Patch33: vsftpd-2.0.5-userlist_log.patch
+Patch34: vsftpd-2.0.5-underscore_uname.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 %if %{tcp_wrappers}
@@ -104,6 +105,7 @@
 %patch31 -p1 -b .write_race
 %patch32 -p1 -b .fix_unique
 %patch33 -p1 -b .userlist_log
+%patch34 -p1 -b .underscore_uname
 
 %build
 %ifarch s390x
@@ -168,6 +170,7 @@
   (#240550).
 - Fix bad handling of unique files (#392231).
 - Added userlist_log option.
+- Allow usernames to begin with underscore or dot (#339911).
 
 * Thu Nov 08 2007 Martin Nagy <mnagy at redhat.com> - 2.0.5-20
 - Correct calling of pam_end (#235843).




More information about the fedora-extras-commits mailing list