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
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 at mindrot.org (home) -or- djm at ibs.com.au (work)
Possibly Parallel Threads
- Point in usernames / scp
- [LLVMdev] fix warning with newer g++ compilers
- openssh-2.9.9p2 subscript violation problems with ctype macros
- [Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
- Invalid user name: function okname() in scp.c