delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/16/09:41:35

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=PmECK7z
o5uAYCT8RU4vvbw8cHkUq2idO7APqOTpA2WXuRCY9i3mF2LT3CgCkH7J+xPW2OMt
h7ARn72BGZIVkmcD5b6WJCBnBQe2IoQuiCZe/bxIdVJMEOJ4yRA6TLEaF4rpD1aJ
esLbzFTxZY8XqX17JwaANGA3sIjgFU296yAc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=FQJDNH9IUcATI
sRnLHJEX5wB6uE=; b=YS67QOq3f3ppWmLwK8D38w4dExl9/2+cKEL7tNAB/UJdg
Vz8fmmLQotP1u0E33/YM8UhapYkWv3zZ7UW3ykVqZNGFEQsiZglvxDbMPOg+zQE5
gAhjvWdbKPd8yBxsTG6wjQWn4DmB+DweAG3m02rLBOm1Pb8i6ubcHnpKW9BlpE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:4532, SHOULD, fine.=c2, H*c:alternative?=
X-HELO: mail-ed1-f48.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=81ORFEdvD0eWLsJEzxYdQyOfNjgnMaidg2Ex7DNqgIc=; b=kcqpOsmLkvulNrwNSbMajfEiHkwo7mB5Oxbflipc+JpPvtcI8mwrB5pRZYh8hxqMhk +yKz+W4tWbZcx/lrGaKRVBvTIjy3o5ow4FA8seYZgi0yV9Ivh+kyLNFYe6cu+SV9nmag fu0xQD0SqxFgnj2/hd5r55eong0QWSMb+vRXYQIlpliluBSnHY+b5QUpudJtM9y02U9D uiGfGVY1L8HPV1m2JFqXjeO89s0HH7/I7ta8BKlfVToiCeRViAp1ScocQo0/D2XZZIXs vZYkg9BAOv+kMFTCjrWzli7GDYMrcqin797CAbL4ZV1iEGd8Bq+pF4PMaqVq4wKPNMx/ Yi0Q==
MIME-Version: 1.0
References: <CAA5t8VocmswTXD4Y7QLxe1NkbZ0Jj+Nt40dFXjHF+9cTP8zW3A AT mail DOT gmail DOT com> <0b92f093cce0c8b0f1b43c9ed6dabac9 AT smtp-cloud8 DOT xs4all DOT net>
In-Reply-To: <0b92f093cce0c8b0f1b43c9ed6dabac9@smtp-cloud8.xs4all.net>
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Fri, 16 Aug 2019 06:40:28 -0700
Message-ID: <CAA5t8VqBgrOwWN6KJyqm+72wtWDu8QY=t3F5kHKEODH-qVHiJQ@mail.gmail.com>
Subject: Re: Win7 system update hosed something in Cygwin
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Fri, Aug 16, 2019 at 2:01 AM Houder wrote:

> On Thu, 15 Aug 2019 18:28:09, David Karr  wrote:
> > I logged into my Win7 laptop and I saw it was having some connection
> > problems, so I decided to reboot.
> >
> > After the reboot I found that Cygwin had some basic problems.  I brought
> up
> > a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
> > prompt looked odd.  It wasn't the PS1 value that I set in my .bashrc. It
> > also seemed to be saying that my current directory was "/", which is not
> my
> > homedir.
>
> Re. your subject title: not likely.
>

Cygwin was working fine.  I rebooted.  Cygwin broken.


> 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 directory
field
  #  3) from HOMEDRIVE/HOMEPATH
  #  4) / (root)

I just brought up a cmd shell and entered "set" and looked at the result.

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 Windows
home directory, which DOES exist.
4. This is what I am getting.

So, before this reboot, my Cygwin home directory has always been
"/home/<myuid>", which has always resided at "c:\cygwin64\home\<myuid>".
After the reboot, my Cygwin home directory is "/", which appears to
translate to "c:\cygwin64" (from "cygpath -w /").  However, according to
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?


> Henri
>
> > I tried to cat out /etc/passwd, but there was no "passwd" (or "groups")
> in
> > /etc . I looked at the output of "env", and it does say that HOME is "/".
> >
> > When I saw this behavior, I tried rebooting again just in case, but it
> > didn't change.  I guess I'm going to try running the cygwin installer to
> > see if it will repair itself. I have no idea whether it would do that.
>
>
> --
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019