1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Fix padding of internal ls

Submitted by:   bug_report@arcor.de
This commit is contained in:
Andrey A. Chernov 2010-05-26 21:40:02 +00:00
parent 9b8f5ff7b5
commit f65f3458d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255141
2 changed files with 12 additions and 3 deletions

View File

@ -9,7 +9,7 @@
PORTNAME= wu-ftpd
PORTVERSION= 2.6.2
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/
PATCH_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/patches/apply_to_2.6.2/

View File

@ -1,5 +1,5 @@
--- src/ftpd.c.orig Tue Apr 5 03:22:01 2005
+++ src/ftpd.c Tue Apr 5 04:10:13 2005
--- src/ftpd.c.orig 2010-05-27 01:19:29.000000000 +0400
+++ src/ftpd.c 2010-05-27 01:19:56.000000000 +0400
@@ -447,7 +447,6 @@
#ifdef OPIE
#include <opie.h>
@ -95,6 +95,15 @@
#ifdef VERBOSE_ERROR_LOGING
syslog(LOG_NOTICE, "FTP LOGIN FAILED (cannot chdir) for %s, %s",
remoteident, pw->pw_name);
@@ -3508,7 +3510,7 @@
{
char *a;
a = (char *) malloc(len + 1);
- memset(a, ' ', len-1);
+ memset(a, ' ', len);
a[len] = 0;
if (strlen(s) <= len)
memcpy(a, s, strlen(s));
@@ -7469,6 +7471,8 @@
in++;
if (*in == '/')