X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=V1N
	xx69MOUXZ6XZwZmft/NtKceG4MyviUGi8/chrk5UZEESrkLlj+H+ZTiyueNFnEag
	Phl975HpyiCVeWMwB/LIQn7Svxl7Ouov9smkI+duCTbs3JTlvvCFSHCLmB9FSR7N
	4/ZIjZQ0BjH+eRCcB1f0Xzyyfjlub1up7AOS0u8Y=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=nk3bqWN4t
	6dH9nIQS+BEoJuZMno=; b=fgbopxr/YbEXMZkOoZepaMotIDZdUjGI1a7l0QI4R
	BKEEcVe8oBJyRlkhm3MK/Sjba5Vy8HyX3mVXvjSnhnx45ywSfhu1z7uWZngWB2Y9
	WEfwB1pZvO/IWK3P4YGWjnsQ5NM/XE3xFq2s+QPGsL6aq+7pXDgZ/FqvnrBHYr44
	oI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=seven
X-HELO: mail-wm0-f41.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:to:from:subject:message-id:date:user-agent         :mime-version:content-transfer-encoding;        bh=onIgfA0Sg1zNEHfcamFq8UFg+yYcdlqquBNgDsuFbyE=;        b=gfvEl6tXH55/7KJFG0w5T07Pe2OzXMUa3MQkCpGTLZbjuk6+0aFmO342rzwNUDuM3s         xqDqaD4GK1hEC6FSKIshcZRPsXtrn2+5PDmdo5hhJ15gYzww50pzFpNf8QN1zznKWJlj         AJYnw3M0xxKabOTxQlUp96zDA31nl0cK3gXbzy93Xf/NGyT9Slbyf1lzNWZgBK00AV9i         eCo4i/tLX05zutYWoYIqi9Ebdh1F/h47ggJAxhAv7BC0wDv9qyJonyEQCKPffaMUTRXX         09q3l9bru6FQIk5xJMl8Mh26TeMzmDry3S0mYD1g6XaGmzO7OdLCQJt4aGzcxmo0kqhJ         crpA==
X-Gm-Message-State: ALyK8tK/uGOIUNSRzIHNgdJJnDaXkPGHhSic24gWkF6WJvaxu9dI+HoPV9ngYG1cIXYFRg==
X-Received: by 10.194.48.7 with SMTP id h7mr7529392wjn.9.1467194173142;        Wed, 29 Jun 2016 02:56:13 -0700 (PDT)
To: cygwin@cygwin.com
From: Christoph Zimmermann <monochromec@gmail.com>
Subject: mintty issue with version 2.3.7
Message-ID: <f8ac7e70-2b59-3aaa-4f8b-ce8f910f27bc@gmail.com>
Date: Wed, 29 Jun 2016 11:56:14 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

After the recent update to version 2.3.7 mintty prints the error message

Error: could not open log file: File exists.
: File exists <log file name>

every time I open a mintty window. I've tracked this down to the 
following snippet (around line # 228) in child.c:

    char * logf = newn(char, MAX_PATH + 1);
         strftime (logf, MAX_PATH, log, localtime (& now.tv_sec));
         free(log);
         log = logf;
       }

       log_fd = open(log, O_WRONLY | O_CREAT | O_EXCL, 0600);
       if (log_fd < 0) {
         // report message and filename:
         childerror("could not open log file", false);
         childerror(log, false);
       }

The culprit seems to be the open invocation with the combination of 
flags; possibly pointing to
a problem in the corresponding cygwin.dll implementation.

Please let me know if you need more details.

	Thanks, Chris

-- 

This email account is monitored seven days a week.

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

