diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch')
| -rw-r--r-- | meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch b/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch deleted file mode 100644 index 7708c40456..0000000000 --- a/meta-oe/recipes-connectivity/inetutils/inetutils-1.8/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch +++ /dev/null | |||
| @@ -1,57 +0,0 @@ | |||
| 1 | From 730015f060fe76eee615f361a65eb719cdf22eef Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mike Frysinger <vapier at gentoo.org> | ||
| 3 | Date: Thu, 18 Nov 2010 22:20:39 -0500 | ||
| 4 | Subject: [PATCH] rshd: detect __rcmd_errstr support in the C lib | ||
| 5 | |||
| 6 | Not all C libraries support __rcmd_errstr, so add a configure test for it. | ||
| 7 | |||
| 8 | Signed-off-by: Mike Frysinger <vapier at gentoo.org> | ||
| 9 | --- | ||
| 10 | configure.ac | 2 +- | ||
| 11 | src/rshd.c | 4 ++++ | ||
| 12 | 2 files changed, 5 insertions(+), 1 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/configure.ac b/configure.ac | ||
| 15 | index c1ac270..79d655c 100644 | ||
| 16 | --- a/configure.ac | ||
| 17 | +++ b/configure.ac | ||
| 18 | @@ -587,7 +587,7 @@ AC_CHECK_FUNCS(cfsetspeed cgetent dirfd fchdir flock \ | ||
| 19 | setsid setregid setreuid setresgid setresuid setutent_r \ | ||
| 20 | sigaction sigvec strchr setproctitle tcgetattr tzset utimes \ | ||
| 21 | utime uname \ | ||
| 22 | - updwtmp updwtmpx vhangup wait3 wait4 opendir2) | ||
| 23 | + updwtmp updwtmpx vhangup wait3 wait4 opendir2 __rcmd_errstr) | ||
| 24 | |||
| 25 | dnl Functions that we will define if necessary. | ||
| 26 | AC_REPLACE_FUNCS(getpass getusershell memcmp memcpy memmove memset \ | ||
| 27 | diff --git a/src/rshd.c b/src/rshd.c | ||
| 28 | index d49facd..9301ef2 100644 | ||
| 29 | --- a/src/rshd.c | ||
| 30 | +++ b/src/rshd.c | ||
| 31 | @@ -284,7 +284,9 @@ extern char **environ; | ||
| 32 | void | ||
| 33 | doit (int sockfd, struct sockaddr_in *fromp) | ||
| 34 | { | ||
| 35 | +#ifdef HAVE___RCMD_ERRSTR | ||
| 36 | extern char *__rcmd_errstr; /* syslog hook from libc/net/rcmd.c. */ | ||
| 37 | +#endif | ||
| 38 | struct hostent *hp; | ||
| 39 | struct passwd *pwd; | ||
| 40 | u_short port; | ||
| 41 | @@ -757,11 +759,13 @@ doit (int sockfd, struct sockaddr_in *fromp) | ||
| 42 | && (iruserok (fromp->sin_addr.s_addr, pwd->pw_uid == 0, | ||
| 43 | remuser, locuser)) < 0)) | ||
| 44 | { | ||
| 45 | +#ifdef HAVE___RCMD_ERRSTR | ||
| 46 | if (__rcmd_errstr) | ||
| 47 | syslog (LOG_INFO | LOG_AUTH, | ||
| 48 | "%s@%s as %s: permission denied (%s). cmd='%.80s'", | ||
| 49 | remuser, hostname, locuser, __rcmd_errstr, cmdbuf); | ||
| 50 | else | ||
| 51 | +#endif | ||
| 52 | syslog (LOG_INFO | LOG_AUTH, | ||
| 53 | "%s@%s as %s: permission denied. cmd='%.80s'", | ||
| 54 | remuser, hostname, locuser, cmdbuf); | ||
| 55 | -- | ||
| 56 | 1.7.3.2 | ||
| 57 | |||
