summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/scp.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-01-24 22:11:20 +0000
committermarkus <markus@openbsd.org>2000-01-24 22:11:20 +0000
commitb54b13487300e00612633cde8d8b2e3f7627a9ae (patch)
tree557ae877d6138948f2b82d320e71d3f84d5107a1 /usr.bin/ssh/scp.c
parentsetup fork() child return values (diff)
downloadwireguard-openbsd-b54b13487300e00612633cde8d8b2e3f7627a9ae.tar.xz
wireguard-openbsd-b54b13487300e00612633cde8d8b2e3f7627a9ae.zip
allow '.' in usernames; from jedgar@fxp.org
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r--usr.bin/ssh/scp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index efb838027cb..16ac0ebc483 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -45,7 +45,7 @@
*/
#include "includes.h"
-RCSID("$Id: scp.c,v 1.24 2000/01/04 16:57:16 markus Exp $");
+RCSID("$Id: scp.c,v 1.25 2000/01/24 22:11:20 markus Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -1006,7 +1006,7 @@ run_err(const char *fmt,...)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scp.c,v 1.24 2000/01/04 16:57:16 markus Exp $
+ * $Id: scp.c,v 1.25 2000/01/24 22:11:20 markus Exp $
*/
char *
@@ -1060,12 +1060,12 @@ okname(cp0)
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);
-bad: fprintf(stderr, "%s: invalid user name", cp0);
+bad: fprintf(stderr, "%s: invalid user name\n", cp0);
return (0);
}