Package: sux
Version: 1.0.1-3
Severity: normal
Tags: patch

When I run "sux - user"
and user has bash as default shell,
scripts ~/.bash_logout and /etc/bash.bash_logout
were not called after exit.

It can be solved like this:

--- /usr/bin/sux.orig   2003-10-24 00:00:00.000000000 +0200
+++ /usr/bin/sux        2005-07-30 15:34:33.000000000 +0200
@@ -303,7 +303,7 @@
   then
     if [ "$sux_got_minus" = "1" ]
     then
-      sux_cmd="sh -c \"exec \$SHELL\" -l"
+      sux_cmd="sh -c \"exec \$SHELL -l\""
     else
       sux_cmd="\$SHELL"
     fi


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

sux depends on no packages.

Versions of packages sux recommends:
ii  xbase-clients        4.3.0.dfsg.1-12.0.1 miscellaneous X clients

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to