delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/04/16:19:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 4 Jul 2002 22:19:08 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: cygwin-1.3.12-1
Message-ID: <20020704221908.H21857@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020704190451 DOT E21857 AT cygbert DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 44 DOT 0207041952020 DOT 1496-300000 AT aca-vnt DOT mcc DOT ac DOT uk> <20020704215212 DOT G21857 AT cygbert DOT vinschen DOT de> <20020704200903 DOT GA7739 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20020704200903.GA7739@redhat.com>
User-Agent: Mutt/1.3.22.1i

On Thu, Jul 04, 2002 at 04:09:03PM -0400, Chris Faylor wrote:
> On Thu, Jul 04, 2002 at 09:52:12PM +0200, Corinna Vinschen wrote:
> >On Thu, Jul 04, 2002 at 07:56:48PM +0100, Tony Arnold wrote:
> >> Corrinna,
> >
> >Almost...
> >
> >> On Thu, 4 Jul 2002, Corinna Vinschen wrote:
> >> My reading of it is that the passwd file is read, but HOME is not set
> >> because it thinks it is already set!
> >
> >Looks like a bug in Cygwin which happens on changing user context.
> 
> FWIW, running strace from a cron job isn't necessarily going to do the
> right thing.  strace introduces a barrier between information presented
> by crond and (in this case) /bin/echo.  It makes /bin/echo think it's
> running in a raw windows environment rather than a cygwin environment.
> 
> It might be more interesting to run strace on cron itself (if that's
> even possible) and then inspect the results.

I did so.  It took a while to understand but it's actually a bug
in the Cygwin version of cron.  I wondered why the same effect
doesn't happen on Linux but the big difference between the official
source and the Cygwin source of cron is the initialization of the
environment.  I'll fix that and release a new version soon.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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