This is the mail archive of the
mailing list for the Cygwin project.
Re: Win7 system update hosed something in Cygwin
On Fri, Aug 16, 2019 at 11:22 AM Houder wrote:
> On Fri, 16 Aug 2019 16:58:09, Houder wrote:
> > On Fri, 16 Aug 2019 06:40:28, David Karr wrote:
> > > On Fri, Aug 16, 2019 at 2:01 AM Houder wrote:
> > ..
> > > > Please study /etc/profile where it says "here is how HOME is set" ...
> > > >
> > >
> > > Ok. This says:
> > >
> > > # 1) From existing HOME in the Windows environment, translated to a
> > > Posix path
> > > # 2) from /etc/passwd, if there is an entry with a non empty
> > > field
> > > # 3) from HOMEDRIVE/HOMEPATH
> > > # 4) / (root)
> > >
> > > I just brought up a cmd shell and entered "set" and looked at the
> > >
> > > 1. I don't have a "HOME" variable setting.
> > > 2. /etc/passwd doesn't exist in Cygwin.
> > > 3. I DO have both HOMEDRIVE and HOMEPATH set, and that points to my
> > > home directory, which DOES exist.
> > > 4. This is what I am getting.
> > Perhaps comment in file is not complete? (is getent perhaps used?)
> Execute from a command prompt:
> <your Cygwin root>\bin\env
> and observe that HOME is added to the environment by the cygwin1.dll ...
> (at the end of the listing/environment array)
Yes, it adds "HOME=/".
> Next, study
> - https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
> - https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
> You should find the answer here; somewhere (/etc/nsswitch.conf?), you
> HOME (db_home:?) ... that is why HOME is known to the cygwin1.dll.
All the lines in nsswitch.conf are commented out, so I assume they're not
> > > So, before this reboot, my Cygwin home directory has always been
> > > "/home/<myuid>", which has always resided at
> > > After the reboot, my Cygwin home directory is "/", which appears to
> > > translate to "c:\cygwin64" (from "cygpath -w /"). However, according
> > > the rules listed in /etc/profille, I SHOULD be getting home set to
> > > "c:/Users/<myuid>", although I don't want that.
> > >
> > > Any other ideas?
> > 1. cygcheck -srv? (include the compressed output to your reply)
> > 2. getent passwd? (what home directory for your id?)
> > 3. /etc/nsswitch.conf? (db_home?)
> > Henri
> > --
> > Problem reports: http://cygwin.com/problems.html
> > FAQ: http://cygwin.com/faq/
> > Documentation: http://cygwin.com/docs.html
> > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple