bin/68881: Fetch corrupts passwords with spaces.
Mark Andrews
Mark_Andrews at isc.org
Fri Jul 9 17:40:16 PDT 2004
>Number: 68881
>Category: bin
>Synopsis: Fetch corrupts passwords with spaces.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 10 00:40:14 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Mark Andrews
>Release: FreeBSD 4.10-PRERELEASE i386
>Organization:
ISC
>Environment:
System: FreeBSD drugs.dv.isc.org 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #17: Fri May 14 00:38:53 EST 2004 marka at drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS i386
>Description:
Fetch corrupts passwords with spaces.
>How-To-Repeat:
Create a account with a password that contains one or
more spaces. Try to use fetch to document that requires
the use of that password.
>Fix:
Index: fetch.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/fetch/fetch.c,v
retrieving revision 1.10.2.23
diff -u -r1.10.2.23 fetch.c
--- fetch.c 12 Apr 2004 19:52:44 -0000 1.10.2.23
+++ fetch.c 10 Jul 2004 00:14:40 -0000
@@ -296,7 +296,7 @@
return -1;
for (i = 0; URL->pwd[i]; ++i)
- if (isspace(URL->pwd[i]))
+ if (isspace(URL->pwd[i]) && URL->pwd[i] != ' ')
URL->pwd[i] = '\0';
return 0;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list