X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 21 Mar 2012 10:38:59 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: ftell() fails on files in shared folders Message-ID: <20120321093859.GL18032@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20120318191043 DOT GA32177 AT calimero DOT vinschen DOT de> <20120319091408 DOT GA30682 AT calimero DOT vinschen DOT de> <20120320120923 DOT GB20228 AT calimero DOT vinschen DOT de> <20120320205003 DOT GJ18032 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mar 21 06:56, Yuri Gribov wrote: > Corinna, > > > the problem is obviously that your remote filesystem returns 0 as the current file size. > > Which WinAPI does that? I can try searching it. I don't understand. What do you want to search? It's the GetFileSize or GetFileSizeEx function on the Win32 API level, or the GetFileInformationByHandleEx function with FileStandardInfo info class sarting with Vista, or it's the native NT equivalent NtQueryInformationFile function with the FileStandardInformation info class. Cygwin uses the latter. But, as I said, it works fine for me on Windows 2008 as well. Is it possible that some kind of virus checker influences the result? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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