diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-07-16 03:54:20 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-07-16 03:54:20 +0000 |
commit | ee7f7306887fc03fde9e03a4a04835253767338f (patch) | |
tree | 42c007f494eb9cefbf24c97bbdb3cc862a3eff44 /app-shells | |
parent | old #140448 (diff) | |
download | gentoo-2-ee7f7306887fc03fde9e03a4a04835253767338f.tar.gz gentoo-2-ee7f7306887fc03fde9e03a4a04835253767338f.tar.bz2 gentoo-2-ee7f7306887fc03fde9e03a4a04835253767338f.zip |
Fix by Victor Nawothnig so logger syslog() is called correctly when cmdline is over 600 bytes.
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/bash/ChangeLog | 7 | ||||
-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 |
3 files changed, 8 insertions, 3 deletions
diff --git a/app-shells/bash/ChangeLog b/app-shells/bash/ChangeLog index ea90c174a1d6..7201af4153e5 100644 --- a/app-shells/bash/ChangeLog +++ b/app-shells/bash/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-shells/bash # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.102 2006/05/06 00:58:51 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.103 2006/07/16 03:54:20 vapier Exp $ + + 16 Jul 2006; Mike Frysinger <vapier@gentoo.org> + files/bash-3.0-bash-logger.patch, files/bash-3.1-bash-logger.patch: + Fix by Victor Nawothnig so logger syslog() is called correctly when cmdline + is over 600 bytes. 06 May 2006; Mike Frysinger <vapier@gentoo.org> +files/bash-3.1-dev-fd-test-as-user.patch, bash-3.1_p16.ebuild, 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); + } + } |