From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48679 invoked by alias); 19 Feb 2016 02:48:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 46167 invoked by uid 89); 19 Feb 2016 02:48:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Device, rx, Modify, Birth X-HELO: mail-wm0-f47.google.com Received: from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 19 Feb 2016 02:48:48 +0000 Received: by mail-wm0-f47.google.com with SMTP id c200so55919429wme.0 for ; Thu, 18 Feb 2016 18:48:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:content-transfer-encoding; bh=6z1hJ29dbf+kbLy2b5B1ZsKqigPZ2yx76G5A7YA886U=; b=mrmBz9Kj6iWGFchtrBT7jO3A4O+5EXCE+GGMZxOF832/jj5ZbXvq4lEtBJa/i/FsRY +enJeoPuRJbV8qHMaxHzCb0AvSi8mTz0s4fnxbi3BrTW8N1/VBGWQWdLGBSHgDfbxP1d e2OeHBX49p25ngqZBHw56xUhf4IQKTEbx3tw8xbb054LB/MYgtrJguCZRoYuJcI87A8v r5tyZsTZhXWixjAm1scJULACyhnQ2PPUnKdMfy04AkmRkCdQsVpXXqVTcycjTo8flZg0 RDwmkamL0oYF2FeApDKUWlI6pYNmB/Hy09lhA+AY+MQE4ljqZB2LUGKTckoBeQaraiJB nQoA== X-Gm-Message-State: AG10YOSyaO19jH/kMpzJoGRz8sqMBWi4uP5+qa/IJnuAjrprXUZaITIS+0dG4BW0ElcDKXtHkocGfK+SYjUe7A== X-Received: by 10.28.173.71 with SMTP id w68mr6775326wme.88.1455850124934; Thu, 18 Feb 2016 18:48:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.178.21 with HTTP; Thu, 18 Feb 2016 18:48:05 -0800 (PST) Reply-To: fracting@gmail.com In-Reply-To: <56BF9370.80303@glup.org> References: <56BF9370.80303@glup.org> From: Qian Hong Date: Fri, 19 Feb 2016 02:48:00 -0000 Message-ID: Subject: Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2 To: cygwin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00295.txt.bz2 I wrote a test case demonstrate the problem at the Cygwin level. It is almost only one line: open("haha", O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); // remember to unlink the file "haha" first On Windows + Cygwin, this program creates a file in 0600 mode: Administrator@short ~ $ stat haha File: =E2=80=98haha=E2=80=99 Size: 0 Blocks: 0 IO Block: 65536 regular empty f= ile Device: 903b0bf0h/2419788784d Inode: 91760842407778598 Links: 1 Access: (0600/-rw-------) Uid: (197108/Administrator) Gid: (197121/ N= one) Access: 2016-02-19 10:34:19.917782200 +0800 Modify: 2016-02-19 10:34:19.917782200 +0800 Change: 2016-02-19 10:34:19.917782200 +0800 Birth: 2016-02-19 09:35:08.796316900 +0800 Administrator@short ~ $ getfacl.exe haha # file: haha # owner: Administrator # group: None user::rw- group::--- other:--- On Wine + Cygwin, this program creates a file in 0505 mode: fracting@fracting-ThinkPad-Edge-E431 ~ $ stat haha File: =E2=80=98haha=E2=80=99 Size: 0 Blocks: 0 IO Block: 65536 regular empty f= ile Device: 4fdc55f7h/1339839991d Inode: 36447801 Links: 1 Access: (0505/-r-x---r-x) Uid: (197608/fracting) Gid: (197121/ None) Access: 2016-02-19 10:32:36.828596900 +0800 Modify: 2016-02-19 10:32:31.820695700 +0800 Change: 2016-02-19 10:32:31.820695700 +0800 Birth: 2016-02-19 10:32:31.820695700 +0800 fracting@fracting-ThinkPad-Edge-E431 ~ $ getfacl.exe haha # file: haha # owner: fracting # group: None user::r-x group::--- group:SYSTEM:rwx mask:r-x other:r-x -- 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