OSSP CVS Repository

ossp - Check-in [4737]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4737
Date: 2004-Oct-04 17:34:50 (local)
2004-Oct-04 15:34:50 (UTC)
User:rse
Branch:
Comment: flush pending changes
Tickets:
Inspections:
Files:
ossp-pkg/due/.bash_login      1.1 -> 1.2     5 inserted, 3 deleted
ossp-pkg/due/.due/due.term.sh      1.1 -> 1.2     8 inserted, 2 deleted
ossp-pkg/due/.due/due.tmpdir.sh      added-> 1.1

ossp-pkg/due/.bash_login 1.1 -> 1.2

--- .bash_login  2004/07/10 08:17:12     1.1
+++ .bash_login  2004/10/04 15:34:50     1.2
@@ -34,7 +34,9 @@
 . $BASH_ENV
 
 #   welcome and goodbye
-echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), login at `date`"
-echo "#[`date '+%Y-%m-%d/%H:%M'`] login by user ${SSHUSER:-unknown}" >>$HISTFILE
-trap 'echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), logout at `date`"' 0
+if expr $- : ".*i.*" >/dev/null; then
+    echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), login at `date`"
+    echo "#[`date '+%Y-%m-%d/%H:%M'`] login by user ${SSHUSER:-unknown}" >>$HISTFILE
+    trap 'echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), logout at `date`"' 0
+fi
 


ossp-pkg/due/.due/due.term.sh 1.1 -> 1.2

--- due.term.sh  2004/07/10 08:17:15     1.1
+++ due.term.sh  2004/10/04 15:34:50     1.2
@@ -43,9 +43,14 @@
 
 #   adjust terminal settings
 if expr $- : ".*i.*" >/dev/null; then
-    mesg y
+    BASH_INTERACTIVE=yes
+else
+    BASH_INTERACTIVE=no
 fi
-if [ ".$TERM" = .xterm ]; then
+if [ ".$BASH_INTERACTIVE" = .yes ]; then
+    mesg y
+fi  
+if [ ".$TERM" = .xterm -a ".$BASH_INTERACTIVE" = .yes ]; then
     stty -istrip cs8
 fi
 shopt -s checkwinsize
@@ -59,6 +64,7 @@
 HISTSIZE=9000
 HISTFILESIZE=9000
 HISTIGNORE="&"
+HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S  '
 
 #   provide command for rotating a little propeller for
 #   keeping a remote connection busy and this way alive


ossp-pkg/due/.due/due.tmpdir.sh -> 1.1

*** /dev/null    Sat Nov 23 05:43:09 2024
--- -    Sat Nov 23 05:43:12 2024
***************
*** 0 ****
--- 1,52 ----
+ ##
+ ##  OSSP due - Dynamic User Environment
+ ##  Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ##  Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ##  This file is part of OSSP due, a dynamic user environment
+ ##  which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ##  Permission to use, copy, modify, and distribute this software for
+ ##  any purpose with or without fee is hereby granted, provided that
+ ##  the above copyright notice and this permission notice appear in all
+ ##  copies.
+ ##
+ ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ##  SUCH DAMAGE.
+ ##
+ ##  tmdir: DUE module for TMPDIR handling 
+ ##
+ 
+ if [ -z $TMPDIR ]; then
+     if [ -d $HOME/tmp ]; then
+         #   reuse own temporary directory
+         TMPDIR=$HOME/tmp
+         export TMPDIR
+     elif [ -d /tmp ]; then
+         if [ ! -d /tmp/$LOGNAME ]; then
+             #   just try to create it without checking results
+             (umask 066; mkdir /tmp/$LOGNAME) >/dev/null 2>&1 || true
+         fi
+         if [ -d /tmp/$LOGNAME ]; then
+             #   check whether the existing directory is really owned by
+             #   us and at the same time fix possible wrong permissions
+             #   (from an previously existing directory)
+             chmod 711 /tmp/$LOGNAME >/dev/null 2>&1
+             if [ $? -eq 0 ]; then
+                 TMPDIR=/tmp/$LOGNAME
+                 export TMPDIR
+             fi
+         fi
+     fi    
+ fi
+ 

CVSTrac 2.0.1