]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
Allow -decodetext binary, though 8bit is still the default because
[nmh] / sbr / ruserpass.c
index 7038cf5ce4ac87a2f15e0ce8150c5d24343c9c2d..7892cbfdc46a636791d26fe48f54f7d266faeaf1 100644 (file)
@@ -102,7 +102,8 @@ ruserpass(char *host, char **aname, char **apass)
                        break;
 
                    case PASSWD:
-                       if (fstat(fileno(cfile), &stb) >= 0 &&
+                       if (!credentials_no_perm_check &&
+                           fstat(fileno(cfile), &stb) >= 0 &&
                            (stb.st_mode & 077) != 0) {
                            /* We make this a fatal error to force the
                               user to correct it. */