From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5341 invoked by alias); 19 Feb 2016 09:39:27 -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 5332 invoked by uid 89); 19 Feb 2016 09:39:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=emulation, attribution, H*i:sZR, H*i:sk:Hqaf8-7 X-HELO: mail-wm0-f51.google.com Received: from mail-wm0-f51.google.com (HELO mail-wm0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 19 Feb 2016 09:39:25 +0000 Received: by mail-wm0-f51.google.com with SMTP id a4so62391869wme.1 for ; Fri, 19 Feb 2016 01:39:24 -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-type :content-transfer-encoding; bh=5vjviCLC9tiAxDtre9YINj5+GjOiBIHZPeADPtO/FoE=; b=bfVvDkHtTiOk0dqsaOfoolqYbzGqz1GhEWRByf/dFGuSdXKjgT9IFHdup5zinyCSnP 0kh9w3uXC6iKfZnpx4wDY7PSUhHGNE3mEmBCzG/R+NEIS/Fp7kQa/cyhuCEUh9Ws/Njg uqwc/iaK2hey4LNuA4brVq2WLyUhCoCJXcNvLqvk1eD+sWBvBQeoF6c1TduAf1mxUaF0 IS8ePB3kbD/nPE41lQ5i+DeM+qxQ7jjH5IyrXYLldqTEB4+eZUsadHyY0u8RNBj4UQ0a XR+g07CiIxYdLAIruqRKurgxipI8LDSokeNLqh4XJEFqHTIVmQd3cQxMeiwVLEz0OyWP dQKQ== X-Gm-Message-State: AG10YOSZVQj95MP3NUE4lpf6cYlksaxyfkjCPrTkoTJVlKvRP20tP7mShLPbmZw6AJSnq1AWT5v6olqpsGPLXw== X-Received: by 10.194.77.167 with SMTP id t7mr11629491wjw.90.1455874762217; Fri, 19 Feb 2016 01:39:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.178.21 with HTTP; Fri, 19 Feb 2016 01:38:42 -0800 (PST) Reply-To: fracting@gmail.com In-Reply-To: References: <56BF9370.80303@glup.org> From: Qian Hong Date: Fri, 19 Feb 2016 09:39: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/msg00296.txt.bz2 Wine use xattr to store Windows ACL information as extended attribution, (well, it's an emulation for compatibility reason...) fracting@fracting-ThinkPad-Edge-E431: ~/.wine/drive_c/cygwin$ $ getfattr tmp # file: tmp user.DOSATTRIB user.wine.sd fracting@fracting-ThinkPad-Edge-E431: ~/.wine/drive_c/cygwin$ getfattr -n user.wine.sd tmp # file: tmp user.wine.sd=3D0sAQAUEAAAHAAAABwAAAAAAAAA7AAAAAEFAAAAAAAFFQAAAAAAAAAAAAAAAA= AAAOgDAAABBQAAAAAABRUAAAAAAAAAAAAAAAAAAAABAgAAAgDsAAkAAAABABQAAQACAAEBAAAAA= AAAAAAAAAAAJAD/AR8AAQUAAAAAAAUVAAAAAAAAAAAAAAAAAAAA6AMAAAAAJACAABIAAQUAAAAA= AAUVAAAAAAAAAAAAAAAAAAAAAQIAAAEAJAB/AQAAAQUAAAAAAAUVAAAAAAAAAAAAAAAAAAAAAQI= AAAAAFAC/ARIAAQEAAAAAAAEAAAAAAQsUAAAAAgABAQAAAAAAAAAAAAAACxQA/wEfAAEBAAAAAA= ADAAAAAAALFACpABIAAQEAAAAAAAMBAAAAAAsUAKkAEgABAQAAAAAAAQAAAAA=3D As a temporary hack, you can remove ~/.wine/drive_c/cygwin/tmp from Linux and re-create using Linux mkdir (rather than Cygwin mkdir). Or use Linux's `fgetxattr` to clear user.wine.sd attribution of ~/.wine/drive_c/cygwin/tmp, this should make `mktemp` and gcc work. I'm still investigating what is the root cause. -- 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