
From bounces-ietf-ssh-owner-secsh-tyoxbijeg7-archive=lists.ietf.org@NetBSD.org  Wed Jul  1 10:23:06 2009
Return-Path: <bounces-ietf-ssh-owner-secsh-tyoxbijeg7-archive=lists.ietf.org@NetBSD.org>
X-Original-To: ietfarch-secsh-tyoxbijeg7-archive@core3.amsl.com
Delivered-To: ietfarch-secsh-tyoxbijeg7-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C41943A6A07 for <ietfarch-secsh-tyoxbijeg7-archive@core3.amsl.com>; Wed,  1 Jul 2009 10:23:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.599
X-Spam-Level: 
X-Spam-Status: No, score=-5.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, GB_I_LETTER=-2, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y0RKPdNmf4Sk for <ietfarch-secsh-tyoxbijeg7-archive@core3.amsl.com>; Wed,  1 Jul 2009 10:23:05 -0700 (PDT)
Received: from mail.netbsd.org (mail.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe52:9ab6]) by core3.amsl.com (Postfix) with ESMTP id B66923A6839 for <secsh-tyoxbijeg7-archive@lists.ietf.org>; Wed,  1 Jul 2009 10:23:05 -0700 (PDT)
Received: by mail.netbsd.org (Postfix, from userid 0) id 5E07E63B10C; Wed,  1 Jul 2009 17:23:17 +0000 (UTC)
Delivered-To: ietf-ssh@netbsd.org
Received: from vandyke.com (mail.vandyke.com [216.184.10.33]) by mail.netbsd.org (Postfix) with ESMTP id 1FE4563B10B for <ietf-ssh@netbsd.org>; Wed,  1 Jul 2009 17:23:15 +0000 (UTC)
Received: from [192.168.1.193] (account galb [192.168.1.193] verified) by vandyke.com (CommuniGate Pro SMTP 5.0.9) with ESMTPA id 5112040; Wed, 01 Jul 2009 10:25:51 -0600
Message-ID: <4A4B8E0F.3080406@vandyke.com>
Date: Wed, 01 Jul 2009 10:25:51 -0600
From: Joseph Galbraith <galb-list@vandyke.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: Andriy Melnyk <andriy.melnyk@gmail.com>
CC: ietf-ssh@NetBSD.org
Subject: Re: sftp open directory
References: <9abd48400906300757i69bbbf31iefacb00ee8fc3659@mail.gmail.com>
In-Reply-To: <9abd48400906300757i69bbbf31iefacb00ee8fc3659@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Sender: ietf-ssh-owner@NetBSD.org
List-Id: ietf-ssh
Precedence: list

Andriy Melnyk wrote:
> Hi,
> Could someone explain me the following:
> SSH File Transfer Protocol draft-ietf-secsh-filexfer-13.txt section 8.1.2.
> Opening a Directory says: *To enumerate a directory, the client first
> obtains a handle and then issues directory read requests. When enumeration
> is complete, the handle MUST be closed.*
> 
> Is it mean that when server receives twice OPEN_DIR command for the same
> directory then for the second one it should responds with
> FXP_STATUS(operation fails) because the first one was not closed with
> FXP_CLOSE?
> What is the correct behaviour?

Hi.

The text simply means that after opening a directory, the handle must
be closed at some point.

I admit the text is a bit unclear; however, I think it is pretty clear
that the SFTP protocol in general allows things to occur in parallel.
In fact, there would be no reason to have handles if we weren't going
to allow multiple directories open at the same time.  Since we do
have handles, I believe the spirit, if not letter, of the draft in this
case is that the client MAY issue any sequence of FXP_OPENDIR, 
FXP_READDIR and FXP_CLOSE requests.  The client MUST close each handle
it receives (either through FXP_OPENDIR or FXP_OPEN) when it is done
with them so that the server can release associated resources.

Thanks,

Joseph

From vocable@metalmpact.com  Wed Jul 29 10:11:43 2009
Return-Path: <vocable@metalmpact.com>
X-Original-To: ietfarch-secsh-archive@core3.amsl.com
Delivered-To: ietfarch-secsh-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 523913A69FC for <ietfarch-secsh-archive@core3.amsl.com>; Wed, 29 Jul 2009 10:11:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.539
X-Spam-Level: ****
X-Spam-Status: No, score=4.539 tagged_above=-999 required=5 tests=[BAYES_50=0.001, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, RCVD_IN_PBL=0.905, RDNS_DYNAMIC=0.1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vOSZTlpTcIyH for <ietfarch-secsh-archive@core3.amsl.com>; Wed, 29 Jul 2009 10:11:41 -0700 (PDT)
Received: from snblima.fastwebnet.it (93-42-216-11.ip88.fastwebnet.it [93.42.216.11]) by core3.amsl.com (Postfix) with SMTP id 96F8D3A6830 for <secsh-archive@megatron.ietf.org>; Wed, 29 Jul 2009 10:11:39 -0700 (PDT)
To: secsh-archive@megatron.ietf.org
Message-ID: <632154E8204683452052B59B1933F577134527@metalmpact.com>
Content-Type: text/plain; charset="windows-1255"
From: "vocable"<vocable@metalmpact.com>
Date: Wed, 29 Jul 2009 17:11:42 +0100
MIME-Version: 1.0
Subject: drava

Sensual Msasage, Toucch and Intimacy.www.wood96 com
