From 331a52bd404b16df0d06ae3a422d0f58930d747b Mon Sep 17 00:00:00 2001 From: kravietz Date: Tue, 7 Nov 2000 16:57:03 +0000 Subject: [PATCH] - username buffer increased from 16 to 17 characters, to allow usernames of 16 characters together with terminating NULL da7a87dc3a1db2acee039801572c17bc ftpd-BSD-username.patch Changed files: ftpd-BSD-username.patch -> 1.1 ftpd-BSD.spec -> 1.25 --- ftpd-BSD-username.patch | 12 ++++++++++++ ftpd-BSD.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 ftpd-BSD-username.patch diff --git a/ftpd-BSD-username.patch b/ftpd-BSD-username.patch new file mode 100644 index 0000000..df9e9a5 --- /dev/null +++ b/ftpd-BSD-username.patch @@ -0,0 +1,12 @@ +diff -bruN ftpd-BSD-0.3.2/ftpd/ftpd.c ftpd-BSD-0.3.2.new/ftpd/ftpd.c +--- ftpd-BSD-0.3.2/ftpd/ftpd.c Fri Jul 7 05:06:04 2000 ++++ ftpd-BSD-0.3.2.new/ftpd/ftpd.c Tue Nov 7 17:51:08 2000 +@@ -802,7 +802,7 @@ + + static int login_attempts; /* number of failed login attempts */ + static int askpasswd; /* had user command, ask for passwd */ +-static char curname[16]; /* current USER name */ ++static char curname[17]; /* current USER name */ + + /* + * USER command. diff --git a/ftpd-BSD.spec b/ftpd-BSD.spec index 4442b7d..ece41e6 100644 --- a/ftpd-BSD.spec +++ b/ftpd-BSD.spec @@ -13,6 +13,7 @@ Source2: %{name}.pamd Source3: %{name}-ftpusers Patch0: %{name}-anonuser.patch Patch1: %{name}-paths.patch +Patch2: %{name}-username.patch Buildrequires: libwrap-devel Buildrequires: pam-devel Requires: rc-inetd @@ -47,6 +48,7 @@ wersji ftpd to 6.4, za %setup -q %patch0 -p1 %patch1 -p1 +%patch1 -p2 %build %{__make} -C ftpd OPT_CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}" -- 2.43.0