diff options
Diffstat (limited to 'app-admin/sudo/files/sudo-1.6.8_p12-ssh_client.diff')
-rw-r--r-- | app-admin/sudo/files/sudo-1.6.8_p12-ssh_client.diff | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-admin/sudo/files/sudo-1.6.8_p12-ssh_client.diff b/app-admin/sudo/files/sudo-1.6.8_p12-ssh_client.diff new file mode 100644 index 0000000..540ee74 --- /dev/null +++ b/app-admin/sudo/files/sudo-1.6.8_p12-ssh_client.diff @@ -0,0 +1,46 @@ +diff -uNr -r sudo-1.6.8p12-orig/env.c sudo-1.6.8p12/env.c +--- sudo-1.6.8p12-orig/env.c 2007-03-04 18:32:36.000000000 +0100 ++++ sudo-1.6.8p12/env.c 2007-03-04 18:32:06.000000000 +0100 +@@ -200,6 +200,8 @@ + user_prompt = *ep + 12; + else if (strncmp("SUDO_USER=", *ep, 10) == 0) + prev_user = *ep + 10; ++ else if (strncmp("SSH_CLIENT=", *ep, 11) == 0) ++ user_ssh_client = *ep + 11; + continue; + case 'T': + if (strncmp("TZ=", *ep, 3) == 0) +diff -uNr -r sudo-1.6.8p12-orig/logging.c sudo-1.6.8p12/logging.c +--- sudo-1.6.8p12-orig/logging.c 2004-05-17 22:08:46.000000000 +0200 ++++ sudo-1.6.8p12/logging.c 2007-03-04 18:32:06.000000000 +0100 +@@ -301,9 +301,9 @@ + else + message = "unknown error ; "; + +- easprintf(&logline, "%sTTY=%s ; PWD=%s ; USER=%s ; COMMAND=%s%s%s", ++ easprintf(&logline, "%sTTY=%s ; PWD=%s ; USER=%s ; COMMAND=%s%s%s ; SSH_CLIENT=%s", + message, user_tty, user_cwd, *user_runas, user_cmnd, +- user_args ? " " : "", user_args ? user_args : ""); ++ user_args ? " " : "", user_args ? user_args : "", user_ssh_client ? user_ssh_client : "" ); + + mail_auth(status, logline); /* send mail based on status */ + +diff -uNr -r sudo-1.6.8p12-orig/sudo.h sudo-1.6.8p12/sudo.h +--- sudo-1.6.8p12-orig/sudo.h 2005-03-24 00:44:46.000000000 +0100 ++++ sudo-1.6.8p12/sudo.h 2007-03-04 18:32:06.000000000 +0100 +@@ -38,6 +38,7 @@ + struct stat *cmnd_stat; + char *path; + char *shell; ++ char *user_ssh_client; + char *tty; + char cwd[PATH_MAX]; + char *host; +@@ -127,6 +128,7 @@ + #define user_shell (sudo_user.shell) + #define user_tty (sudo_user.tty) + #define user_cwd (sudo_user.cwd) ++#define user_ssh_client (sudo_user.user_ssh_client) + #define user_runas (sudo_user.runas) + #define user_cmnd (sudo_user.cmnd) + #define user_args (sudo_user.cmnd_args) |