delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/27/15:06:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 27 Sep 2004 15:05:40 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: cygrunsrv fails to run services
In-Reply-To: <118407399379.20040927205457@familiehaase.de>
Message-ID: <Pine.GSO.4.61.0409271500430.13693@slinky.cs.nyu.edu>
References: <41544393 DOT 6040206 AT familiehaase DOT de> <20040924170212 DOT GK12802 AT cygbert DOT vinschen DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0409241351430 DOT 880 AT slinky DOT cs DOT nyu DOT edu> <21401463043 DOT 20040927191600 AT familiehaase DOT de> <Pine DOT GSO DOT 4 DOT 61 DOT 0409271335040 DOT 13693 AT slinky DOT cs DOT nyu DOT edu> <118407399379 DOT 20040927205457 AT familiehaase DOT de>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Mon, 27 Sep 2004, Gerrit P. Haase wrote:

> Igor schrieb:
>
> > On Mon, 27 Sep 2004, Gerrit P. Haase wrote:
>
> >> Igor wrote:
> >>
> >> Coming back with this now. Today I upgraded cygwin from 1.5.5 to 1.5.11
> >> at another box, now the same problems here, starting sshd gives me an
> >> error 1062 or 1067, depending on the way how I start it, via Service
> >> Control or via cygrunsrv from the prompt.  I have check_case:strict here
> >> too.  Removing check_case:strict from the environment resolves the
> >> problem.
>
> > Another workaround is to fix the cases of directories in your PATH. If
> > you do that, you can keep the "check_case:strict" setting.
>
> I verified that the actual directory names and the settings in PATH are
> the same, is there another place where Windows returns garbage?

Umm, if you have problems with the cygrunsrv command, it's likely that you
used the wrong directory/filename case when you installed the service.  If
so, than the above is expected behavior, and not a bug.

If you really are seeing the bug that I reported earlier (the one with
PATH conversion), it's very easy to reproduce: just start cmd.exe *from*
bash, and echo the PATH -- you'll see that the PATH is cut off at the
directory with the wrong case.

> >> Now I wonder what was changed in Cygwin so that it doesn't work anymore
> >> when check_case:strict is defined, it used to work back in the good old
> >> B20 days up to at least 1.5.5 and now with 1.5.10 it doesn't work
> >> anymore, sigh!
>
> > That's a good question.  Try as I might, I couldn't see *any* changes in
> > the path.cc code that could have caused this behavior to change.  All of
> > the relevant code was written as far back as 2001...
>
> Actually I upgraded to 1.5.11, but I saw the problems also with 1.5.10,
> cannot say when the cut happened, IIRC I used 1.5.5 and then upgraded to
> 1.5.10.

It's also possible that some file inadvertently changed case in the
installation tarballs between your old and new versions of Cygwin.  If
that is the case, then again, the above behavior is expected.

> I don't think that it is in the path code.  Must be some other reason.
> E.g. cygserver runs in background, but cygrunsrv thinks it receives an
> error and exits, also sshd is running happily in background without
> cygrunsrv sitting on it.  So it is not the problem that the application
> is not running.

Huh?  The whole point of cygrunsrv is to take a *foreground* application
and turn it into a service.  That's why you specify the "-F" flag to
httpd, and the "-D" flag to sshd when you install them as services using
cygrunsrv.

> > FWIW, I'm hoping to submit a patch tonight with one possible fix for this.

The "this" above is the Win32->Cygwin->Win32 path conversion bug, which
apparently isn't what you're seeing.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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