Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 17 Oct 2002 13:55:43 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: File permission problems with new cygwin dll
Message-ID: <20021017175543.GA13272@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <79218202D4B9D4118A290002A508E13B79C3A2@PNZEXCHANGE>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <79218202D4B9D4118A290002A508E13B79C3A2@PNZEXCHANGE>
User-Agent: Mutt/1.4i

On Thu, Oct 17, 2002 at 03:17:11PM +1300, Ross Smith wrote:
>If you take any command-line program that writes to stdout -- plain old
>"hello world" will do fine -- compile it with gcc, and run it several
>times with >> somefile, then you get a file containing several copies
>of "hello world", as you'd expect. But if you compile it with Visual
>C++ instead, then instead of appending to the file, it just overwrites
>the beginning of the file every time.

Should be fixed in cvs.  I'm generating a snapshot.

The problem was caused by this change from Pavel Tsekov:

http://sources.redhat.com/ml/cygwin-cvs/2002-q3/msg00064.html

I had a nagging feeling that this was a problem when it was checked in.

My fix still keeps this patch but it resets file pointers before execing
a new process.  That seems to work.

--
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/

