diff options
author | 2006-07-16 03:54:20 +0000 | |
---|---|---|
committer | 2006-07-16 03:54:20 +0000 | |
commit | 35d1599982c899c8302ffaa69eacc0a0ef66ba90 (patch) | |
tree | 209f7ba3307baaed9ef51effd272d67b5e2631e6 /app-shells/bash/files | |
parent | old #140448 (diff) | |
download | historical-35d1599982c899c8302ffaa69eacc0a0ef66ba90.tar.gz historical-35d1599982c899c8302ffaa69eacc0a0ef66ba90.tar.bz2 historical-35d1599982c899c8302ffaa69eacc0a0ef66ba90.zip |
Fix by Victor Nawothnig so logger syslog() is called correctly when cmdline is over 600 bytes.
Package-Manager: portage-2.1.1_pre2-r8
Diffstat (limited to 'app-shells/bash/files')
-rw-r--r-- | app-shells/bash/files/bash-3.0-bash-logger.patch | 2 | ||||
-rw-r--r-- | app-shells/bash/files/bash-3.1-bash-logger.patch | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app-shells/bash/files/bash-3.0-bash-logger.patch b/app-shells/bash/files/bash-3.0-bash-logger.patch index faa825191699..b0660aeaa65b 100644 --- a/app-shells/bash/files/bash-3.0-bash-logger.patch +++ b/app-shells/bash/files/bash-3.0-bash-logger.patch @@ -70,7 +70,7 @@ http://www.nardware.co.uk/Security/html/bashlogger.htm + char trunc[600]; + strncpy(trunc,string,sizeof(trunc)); + trunc[sizeof(trunc)-1]='\0'; -+ syslog(LOG_LOCAL5, LOG_INFO, "HISTORY: PID=%d UID=%d %s(++TRUNC)", ++ syslog(LOG_LOCAL5 | LOG_INFO, "HISTORY: PID=%d UID=%d %s(++TRUNC)", + getpid(), getuid(), trunc); + } + } diff --git a/app-shells/bash/files/bash-3.1-bash-logger.patch b/app-shells/bash/files/bash-3.1-bash-logger.patch index c29cde3bb34b..3bc29daf7552 100644 --- a/app-shells/bash/files/bash-3.1-bash-logger.patch +++ b/app-shells/bash/files/bash-3.1-bash-logger.patch @@ -70,7 +70,7 @@ http://www.nardware.co.uk/Security/html/bashlogger.htm + char trunc[600]; + strncpy(trunc,string,sizeof(trunc)); + trunc[sizeof(trunc)-1]='\0'; -+ syslog(LOG_LOCAL5, LOG_INFO, "HISTORY: PID=%d UID=%d %s(++TRUNC)", ++ syslog(LOG_LOCAL5 | LOG_INFO, "HISTORY: PID=%d UID=%d %s(++TRUNC)", + getpid(), getuid(), trunc); + } + } |