svn rev #3309: trunk/gssftp/ftpd/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Apr 26 14:42:00 EDT 2011
Commit By: ghudson
Log Message:
ticket: 6889
Correctly parse "restrict" lines in ftpusers. From Jatin Nansi via
nalin at redhat.com.
Changed Files:
U trunk/gssftp/ftpd/ftpd.c
Modified: trunk/gssftp/ftpd/ftpd.c
===================================================================
--- trunk/gssftp/ftpd/ftpd.c 2010-09-13 23:16:05 UTC (rev 3308)
+++ trunk/gssftp/ftpd/ftpd.c 2011-04-26 18:42:00 UTC (rev 3309)
@@ -805,7 +805,7 @@
if (strcmp(line, name) == 0)
return (1);
if (strncmp(line, name, strlen(name)) == 0) {
- int i = strlen(name) + 1;
+ int i = strlen(name);
/* Make sure foo doesn't match foobar */
if (line[i] == '\0' || !isspace((int) line[i]))
More information about the Krb5-appl-commits
mailing list