www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/18/21:49:10

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:mime-version:reply-to:in-reply-to:references
:from:date:message-id:subject:to:content-type
:content-transfer-encoding; q=dns; s=default; b=j47VXMEEwk5P5ZUR
8CIBnV6n10RXl7231VfFrRYIVphVgYZet86/PHt0dMldcPW80Sd2bIRR9iDzSMbK
6EHd40WVwz1BdD4r+WObqD3WqxhhjdQd+Y7ZlWl30ECM+u7QZamqW8Cg4bHrY6Hf
CRjOWsy/2wCUjjBtM4T42rs+eGA=
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:mime-version:reply-to:in-reply-to:references
:from:date:message-id:subject:to:content-type
:content-transfer-encoding; s=default; bh=1fS7ua2aM8I/xYs+BCem9G
IDUyU=; b=mJLijdY3lK7jRaafbY8EVILBW+fvPqhcOVT6jgkAnQiMldqV0cn0SH
TXqF5MqnaEt3bZbBxu6lUzAxibj7wyJUp50YpuD+Nk98gq3VwTLRB8qjDax0NURa
pVe0DNwSQ9oU/gRsjN+uCYg9Z0zeHa/OHMPJb5/q07gLmajn/6SUU=
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=-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
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
Reply-To: fracting AT gmail DOT com
In-Reply-To: <56BF9370.80303@glup.org>
References: <56BF9370 DOT 80303 AT glup DOT org>
From: Qian Hong <fracting AT gmail DOT com>
Date: Fri, 19 Feb 2016 10:48:05 +0800
Message-ID: <CALd+sZR=HSUoyh6VYCqDebPiA7fXQkQspycT=Hqaf8-7hTbRog@mail.gmail.com>
Subject: Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u1J2n6I4020618

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 AT short ~
$ stat haha
  File: ‘haha’
  Size: 0               Blocks: 0          IO Block: 65536  regular empty file
Device: 903b0bf0h/2419788784d   Inode: 91760842407778598  Links: 1
Access: (0600/-rw-------)  Uid: (197108/Administrator)   Gid: (197121/    None)
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 AT 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 AT fracting-ThinkPad-Edge-E431 ~
$ stat haha
  File: ‘haha’
  Size: 0               Blocks: 0          IO Block: 65536  regular empty file
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 AT 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


- Raw text -


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