From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34642 invoked by alias); 16 Aug 2019 13:40:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 34626 invoked by uid 89); 16 Aug 2019 13:40:43 -0000 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 Received: from mail-ed1-f48.google.com (HELO mail-ed1-f48.google.com) (209.85.208.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 16 Aug 2019 13:40:42 +0000 Received: by mail-ed1-f48.google.com with SMTP id a21so5135374edt.11 for ; Fri, 16 Aug 2019 06:40:41 -0700 (PDT) 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: <0b92f093cce0c8b0f1b43c9ed6dabac9@smtp-cloud8.xs4all.net> In-Reply-To: <0b92f093cce0c8b0f1b43c9ed6dabac9@smtp-cloud8.xs4all.net> From: David Karr Date: Fri, 16 Aug 2019 14:48:00 -0000 Message-ID: Subject: Re: Win7 system update hosed something in Cygwin To: The Cygwin Mailing List Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00222.txt.bz2 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/", which has always resided at "c:\cygwin64\home\". 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/", 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