delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/06/12:10:46

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: Wed, 6 Nov 2002 18:10:26 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: ssh-host-config suggestion (was: Re: Updated: OpenSSH-3.5p1-1)
Message-ID: <20021106181026.C2180@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20021106153438 DOT K2180 AT cygbert DOT vinschen DOT de> <15817 DOT 18485 DOT 56727 DOT 29262 AT jupiter DOT akutech-local DOT de>
Mime-Version: 1.0
In-Reply-To: <15817.18485.56727.29262@jupiter.akutech-local.de>
User-Agent: Mutt/1.3.22.1i

On Wed, Nov 06, 2002 at 05:49:57PM +0100, Ralf Fassel wrote:
> - the ssh-host-config script should make sure that CYGWIN contains
>   `ntsec' when trying the chmod/chown steps

That shouldn't be necessary anymore since 1.3.14 sets ntsec by default
on NT systems.

> - could `chown' be modified to complain if it fails to do the work it
>   was supposed to do?  It seems that the exit status is 0, and besides
>   that the script simply does not care about the exit status of chown.

Tricky.  The problem (and the reason the script doesn't test the return
code) is, there are several conditions for having a working chown.  It
must be NT/2K/XP, ntsec must be on, FS must be NTFS.  The chown(2) syscall
returns intentionally always 0 if any of these conditions isn't met.

There could be an additional test in the script after calling chown,
though...

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