[19857] in Athena Bugs
Re: sun4 9.0.14: /usr/athena/lib/init/bash_login
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Oct 2 23:22:46 2001
Message-Id: <200110030322.XAA03470@men-at-arms.mit.edu>
To: Ray Jones <thouis@MIT.EDU>
cc: bugs@MIT.EDU
In-Reply-To: Your message of "Tue, 02 Oct 2001 20:47:41 EDT."
<200110030047.UAA15991@scrubbing-bubbles.mit.edu>
Date: Tue, 02 Oct 2001 23:22:43 -0400
From: Greg Hudson <ghudson@MIT.EDU>
> if [ "${XSESSION+set}" = set ]; then
> exit 0
> fi
> Prevent me from logging in. The if statement always evaluates to
> true.
No, it only evalutes to true when the XSESSION variable is set.
${foo+bar} evaluates to bar if foo is set, or nothing if foo is not
set.
> The line with the test should be changed to:
> if [ "${XSESSION}+set" = set ]; then
That would never evaluate to true.
> Though, actually, I don't know what this line is there to
> accomplish. It forces users to have the XSESSION variable set to
> log in. (??)
Quite the contrary; it forces users not to have the XSESSION variable
set; if XSESSION is set, that implies that the user has performed an X
login and doesn't need the tty login code to be run.
Please describe the problem more empirically. What type of login were
you trying to perform? What went wrong during the login? What error
messages did you see, if any?