diff options
author | dg <dg@FreeBSD.org> | 1994-09-20 15:53:30 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-20 15:53:30 +0000 |
commit | 7a0e31815456893b7e3f093f8bb040cfc5a21081 (patch) | |
tree | 83ba7cddc45ee42a3ccab7ed2de2943731df4ed9 /libexec | |
parent | 3704208ad62eb595c034205f77468a9730c4538d (diff) | |
download | FreeBSD-src-7a0e31815456893b7e3f093f8bb040cfc5a21081.zip FreeBSD-src-7a0e31815456893b7e3f093f8bb040cfc5a21081.tar.gz |
Fixed bug where /etc/ftpusers was ineffective. Caused by the wrong
pointer being passed to strcmp(). Bug noticed by Matthew Green.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 5d6fab5..ce9ac59 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -500,7 +500,7 @@ checkuser(name) *p = '\0'; if (line[0] == '#') continue; - if (strcmp(p, name) == 0) { + if (strcmp(line, name) == 0) { found = 1; break; } |