delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/29/05:56:46

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
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 AT cygwin DOT com
From: Christoph Zimmermann <monochromec AT gmail DOT 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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019