blob: fdd535be1bc6084bd9f905586f82e47b87e8dd76 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001netkit-rsh:
2Allow to build with no PAM enabled.
3
4Upstream-Status: Inappropriate [ no upstream maintaner ]
5
6Signed-off-by: Armin Kuster <akuster808@gmail.com>
7
8Index: netkit-rsh-0.17/rshd/rshd.c
9===================================================================
10--- netkit-rsh-0.17.orig/rshd/rshd.c
11+++ netkit-rsh-0.17/rshd/rshd.c
12@@ -110,9 +110,11 @@ extern char **environ;
13 static void error(const char *fmt, ...);
14 static void doit(struct sockaddr *fromp, socklen_t fromlen);
15 static char *getstr(char *, size_t, const char *);
16+#ifdef USE_PAM
17 static int err_conv(
18 int, const struct pam_message **, struct pam_response **, void *
19 );
20+#endif /* USE_PAM */
21
22 extern int _check_rhosts_file;
23
24@@ -256,6 +258,7 @@ static void stderr_parent(int sock, int
25 }
26
27
28+#ifdef USE_PAM
29 static int err_conv(
30 int num_msg, const struct pam_message **msg,
31 struct pam_response **resp, void *appdata_ptr
32@@ -266,6 +269,7 @@ static int err_conv(
33 (void) appdata_ptr;
34 return PAM_CONV_ERR;
35 }
36+#endif
37
38 static struct passwd *doauth(const char *remuser,
39 const char *hostname,