public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* BUG: cygwin warning: barfs on domain-based-mboxes; env corrupted by login(-p disabled)
@ 2014-10-28  6:09 Linda Walsh
  2014-10-28 11:03 ` Corinna Vinschen
  2014-12-02 16:01 ` Corinna Vinschen
  0 siblings, 2 replies; 7+ messages in thread
From: Linda Walsh @ 2014-10-28  6:09 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-08 10:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-28  6:09 BUG: cygwin warning: barfs on domain-based-mboxes; env corrupted by login(-p disabled) Linda Walsh
2014-10-28 11:03 ` Corinna Vinschen
2014-10-28 13:23   ` cyg Simple
2014-10-29  1:35   ` Andrey Repin
2014-10-30  0:12     ` Linda Walsh
2014-12-02 16:01 ` Corinna Vinschen
2014-12-08 10:52   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).