delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/28/02:09:51

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:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=h6b
vFIlbMeFTSELqDHR3SgpmSVJq/8hTU3oKCIymw0j/MEpO1MYuBs338HaUIF2B3Wh
Li6V5BXY21z+a4Tc8+3NxifW8ScFo3W9wMkFr435kK+a5CvX67T6RGUx+tDeyAmD
IRARKwrTrfK51Vl+DC4nu3CVEQFMxUVSEHvcIHM8=
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:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=PxYkg5K1Y
NKrt4Rv9F3fFADjcL0=; b=Qs4KwW4A+2+XjRX0jcljHUAPqmxKQ7StxbKXiO9Ek
d9UOSOVtX6ZkKIr/cpsmV/cP3nQH+EYA2mYL01LYqLaiqzgG5mzzq4RWlxtorCOS
Hm5i+EbnsITmjQ3zatiqwbbcRu1QRQ5k/4cz9mi0ZYJuAJi0t4czWw9TqZUoEW5Z
bg=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_20,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: Ishtar.hs.tlinx.org
Message-ID: <544F3313.6050604@tlinx.org>
Date: Mon, 27 Oct 2014 23:09:23 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: BUG: cygwin warning: barfs on domain-based-mboxes; env corrupted by login(-p disabled)
X-IsSubscribed: yes

cygwin warning:
  MS-DOS style path detected: /usr/spool/mail/Bliss/law
  Preferred POSIX equivalent is: /usr/spool/mail/Bliss/law
  CYGWIN environment variable option "nodosfilewarning" turns off this 
warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
law.Bliss> 
who                                                                
Bliss\law pty0         2014-10-27 22:39 (Athenae)
law.Bliss> id
uid=5013(Bliss\law) gid=201(lawgroup) 
groups=201(lawgroup),544(Administrators),545(Users),\
512(Bliss\Domain Admins),513(Bliss\Domain Users)
----
Upon starting a new cygwin console session -- the first time after
boot, I get the above and I can't shut it off because 'login'
clears all of the Windows environment (including USERPROFILE)
when I use rlogin to login to my local host).

I don't know if rlogin also clears the environment, but login
pretty clearly does which causes all sorts problems trying to
run many (any?) windows based programs.

Note, the above mbox check in (all caps)
/USR/SPOOL/MAIL/BLISS\LAW

happens long before bash has opened it's first "rc" file, so
nothing in bash can be set to disable this problem before
it comes out (does Mbox processing before any rc processing).

At the very least, "login -p" should be fixed to work  (whereas
now it has been explicitly patch to NOT WORK (man login:...)

    -p     Used by getty(8) to tell login not to destroy  the  environment.
              This is disabled in the Cygwin version.

Can login have the cygwin specific code that disables "-p"
removed?  Is there a reason why it is _needed_ (I know it
may cause unpredictable results in a multi-user env -- but
that can be documented -- otherwise, there is no
reliable single-user workaround for the above (and a few
other ENV-wiped-based problems).









--
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