]> diplodocus.org Git - nmh/blobdiff - uip/slocal.c
Use isascii() with isprint(), since using isprint() on
[nmh] / uip / slocal.c
index a26432c5da36e53f27b6bfc8fec02c770d411f8d..927e85830c98182b2fb7de317b3f68d5278bbb2c 100644 (file)
@@ -273,8 +273,9 @@ main (int argc, char **argv)
 
     if (addr == NULL)
        addr = getusername ();
-    if (user == NULL)
-       user = (cp = strchr(addr, '.')) ? ++cp : addr;
+    if (user == NULL) {
+       user = getusername ();
+    }
     if ((pw = getpwnam (user)) == NULL)
        adios (NULL, "no such local user as %s", user);