[openssh-commits] [openssh] 01/01: Wrap copy_environment_blacklist() in #ifdef

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Jan 21 12:32:58 AEDT 2020


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit a8bd5fdbdb7581afc7123a042a7cd6ca25357388
Author: Damien Miller <djm at mindrot.org>
Date:   Tue Jan 21 12:32:16 2020 +1100

    Wrap copy_environment_blacklist() in #ifdef
    
    It's only needed for USE_PAM or HAVE_CYGWIN cases and will cause compiler
    warnings otherwise.
---
 session.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/session.c b/session.c
index 431ccd83..e16f876c 100644
--- a/session.c
+++ b/session.c
@@ -946,6 +946,7 @@ read_etc_default_login(char ***env, u_int *envsize, uid_t uid)
 }
 #endif /* HAVE_ETC_DEFAULT_LOGIN */
 
+#if defined(USE_PAM) || defined(HAVE_CYGWIN)
 static void
 copy_environment_blacklist(char **source, char ***env, u_int *envsize,
     const char *blacklist)
@@ -973,6 +974,7 @@ copy_environment_blacklist(char **source, char ***env, u_int *envsize,
 		free(var_name);
 	}
 }
+#endif /* defined(USE_PAM) || defined(HAVE_CYGWIN) */
 
 #ifdef HAVE_CYGWIN
 static void

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list