Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40108 - Patch to force bash auto-logout to call ~/.bash_logout
Summary: Patch to force bash auto-logout to call ~/.bash_logout
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-01 12:05 UTC by Kurt Hindenburg
Modified: 2004-09-28 21:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to force auto-logout to read ~/.bash_logout (bash-tmout-logout.diff,684 bytes, patch)
2004-02-01 12:07 UTC, Kurt Hindenburg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2004-02-01 12:05:39 UTC
Currently, bash auto-logout (set via TMOUT) does not call ~/.bash_logout.  I've send a patch upstream.

Reproducible: Always
Steps to Reproduce:
1.echo "clear" > ~/.bash_logout
2.export TMOUT=10
3.

Actual Results:  
~/.bash_logout is NOT called.

Expected Results:  
Execute ~/.bash_logout

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache clean notitles sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo
ftp://mirrors.tds.net/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/portage-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb cdr crypt cups doc encode esd foomaticdb
gdbm gif gnome gpm gtk gtk2 gtkhtml imlib joystick jpeg kde libg++ libwww mad
maildir mikmod mmx mono mpeg ncurses nls oggvorbis opengl oss pam pdflib perl
png python qt quicktime readline ruby ruby18 sdl slang spell ssl stroke svga
tcpd truetype x86 xml2 xv zlib"
Comment 1 Kurt Hindenburg 2004-02-01 12:07:47 UTC
Created attachment 24771 [details, diff]
Patch to force auto-logout to read ~/.bash_logout

Does not interfer with any other patches for ebuild bash-2.05b-r9.
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-09-27 20:21:03 UTC
Does this still apply to bash-3.0-r6?
Comment 3 Kurt Hindenburg 2004-09-28 07:40:00 UTC
Don't know, I still have 2.05b installed.  I'll install 3.0 sometime and let you know.
Comment 4 Kurt Hindenburg 2004-09-28 09:02:44 UTC
3.0 fixes this bug; tested using 3.0-r6

From CHANGES:
f.  Fixed the internal logout code so that shells that time out waiting for
    input (using $TMOUT) run ~/.bash_logout.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-09-28 21:03:30 UTC
Cool, thanks for the report and for testing :-)