Bug 365 - .ssh/environment not read when home = /
Summary: .ssh/environment not read when home = /
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: ix86 Cygwin on NT/2k/Win7-11
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-19 23:00 AEST by Mark Bradshaw
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
Correct .ssh/environment path under cygwin (431 bytes, patch)
2002-07-19 23:01 AEST, Mark Bradshaw
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Bradshaw 2002-07-19 23:00:54 AEST
Under the cygwin environment, when the user sets their home directory to root 
the .ssh/environment file isn't read in properly.  This is similar to past 
pathing problems in OpenSSH where the path that is assembled to find the file 
begins with two slashes, instead of one.  Under Cygwin this indicates a network 
share, not the root of the file system.

The attached path merely checks to see if home = / and, if so, doesn't use it 
when assembling the path to .ssh/environment.
Comment 1 Mark Bradshaw 2002-07-19 23:01:52 AEST
Created attachment 133 [details]
Correct .ssh/environment path under cygwin
Comment 2 Damien Miller 2002-09-10 21:43:45 AEST
Applied - thanks.
Comment 3 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED