Mailing List Archive

Patch for scp (openssh 1.2.2p1)
Hi

While ssh allows for usernames containing a dot, scp gives an error
"Invalid user name". The following patch fixed that behaviour:

diff -ru scp.c-save scp.c
--- scp.c-save Thu Mar 9 12:21:43 2000
+++ scp.c Thu Mar 9 12:22:25 2000
@@ -1062,7 +1062,7 @@
c = *cp;
if (c & 0200)
goto bad;
- if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-')
+ if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c !=
'.')
goto bad;
} while (*++cp);
return (1);

Hope that this can be applied (so i don't have to do it anymore with any
upgrade).

Regards
Tim
Re: Patch for scp (openssh 1.2.2p1) [ In reply to ]
On Thu, 9 Mar 2000, tit wrote:

> Hi
>
> While ssh allows for usernames containing a dot, scp gives an error
> "Invalid user name". The following patch fixed that behaviour:

Just picked this one up from OpenBSD's CVS tree.

-d

--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)