From 1ddee76b49b71f103639cb6062c431f2252a74ca Mon Sep 17 00:00:00 2001 From: stevesk Date: Fri, 20 Apr 2001 17:43:47 +0000 Subject: [PATCH] - (stevesk) set the default PAM service name to __progname instead of the hard-coded value "sshd"; from Mark D. Roth --- ChangeLog | 2 ++ auth-pam.c | 2 ++ ssh.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39fd67b6..038d83ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ Split out and improve escape character documentation, mention ~R in ~? help text; ok markus@ - Update RPM spec files for CVS version.h + - (stevesk) set the default PAM service name to __progname instead + of the hard-coded value "sshd"; from Mark D. Roth 20010420 - OpenBSD CVS Sync diff --git a/auth-pam.c b/auth-pam.c index a8362cb7..eb8b27dc 100644 --- a/auth-pam.c +++ b/auth-pam.c @@ -33,6 +33,8 @@ #include "canohost.h" #include "readpass.h" +extern char *__progname; + RCSID("$Id$"); #define NEW_AUTHTOK_MSG \ diff --git a/ssh.h b/ssh.h index 3ca92549..0ee62868 100644 --- a/ssh.h +++ b/ssh.h @@ -61,7 +61,7 @@ #define SSH_SERVICE_NAME "ssh" #if defined(USE_PAM) && !defined(SSHD_PAM_SERVICE) -# define SSHD_PAM_SERVICE "sshd" +# define SSHD_PAM_SERVICE __progname #endif /* -- 2.45.2