NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/46231: root .login file disturbs pkgsrc su ?



The following reply was made to PR bin/46231; it has been noted by GNATS.

From: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/46231: root .login file disturbs pkgsrc su ?
Date: Tue, 20 Mar 2012 13:11:31 -0400

 On Tue, 20 Mar 2012 15:05:01 +0000 (UTC)
 martin%NetBSD.org@localhost wrote:
 
 > The only tset I could find is in /root/.login (!) and commenting that one
 > out removes the errors.
 > 
 > Now, if I am not halluzinating, this brings up two questions:
 >  1) should that script be run during the su from pkgsrc at all?
 >  2) should that tset be guarded by something like:
 >      case $- in *i*) ?
 
 I would think that tset could be in the interactive-case, but .profile
 should only be loaded from login shells (i.e. su including the -).  If
 the script doesn't include the -, does .shrc or /etc/shrc
 source .profile?
 -- 
 Matt
 


Home | Main Index | Thread Index | Old Index