Point in usernames / scp

Kai Engert engert at isg.de
Mon Dec 11 12:15:04 EST 2000


Hi,

we are using usernames on our systems that contain a point '.', like
"r.john".

We found it necessary to patch the source to make the "scp" command work
with those usernames.

Cheers
Kai

--- openssh-2.2.0p1/scp.c	Wed Aug 30 01:11:30 2000
+++ withpoint/scp.c	Mon Dec 11 02:06:35 2000
@@ -1042,7 +1042,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);





More information about the openssh-unix-dev mailing list