]> andersk Git - openssh.git/blobdiff - session.c
- (djm) Fix rsh path in RPMs. Report from Jason L Tibbitts III
[openssh.git] / session.c
index 4791857c0d3561d5782d20e4213ee1e3f7a26a74..0fdd613a5e4035d94e35c03df6c12898cf30c46f 100644 (file)
--- a/session.c
+++ b/session.c
@@ -812,6 +812,10 @@ do_child(const char *command, struct passwd * pw, const char *term,
        struct stat st;
        char *argv[10];
 
+       /* login(1) is only called if we execute the login shell */
+       if (options.use_login && command != NULL)
+               options.use_login = 0;
+
 #ifndef USE_PAM /* pam_nologin handles this */
        f = fopen("/etc/nologin", "r");
        if (f) {
This page took 0.03477 seconds and 4 git commands to generate.