This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2
- From: Qian Hong <fracting at gmail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Fri, 19 Feb 2016 17:38:42 +0800
- Subject: Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2
- Authentication-results: sourceware.org; auth=none
- References: <56BF9370 dot 80303 at glup dot org> <CALd+sZR=HSUoyh6VYCqDebPiA7fXQkQspycT=Hqaf8-7hTbRog at mail dot gmail dot com>
- Reply-to: fracting at gmail dot com
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=0sAQAUEAAAHAAAABwAAAAAAAAA7AAAAAEFAAAAAAAFFQAAAAAAAAAAAAAAAAAAAOgDAAABBQAAAAAABRUAAAAAAAAAAAAAAAAAAAABAgAAAgDsAAkAAAABABQAAQACAAEBAAAAAAAAAAAAAAAAJAD/AR8AAQUAAAAAAAUVAAAAAAAAAAAAAAAAAAAA6AMAAAAAJACAABIAAQUAAAAAAAUVAAAAAAAAAAAAAAAAAAAAAQIAAAEAJAB/AQAAAQUAAAAAAAUVAAAAAAAAAAAAAAAAAAAAAQIAAAAAFAC/ARIAAQEAAAAAAAEAAAAAAQsUAAAAAgABAQAAAAAAAAAAAAAACxQA/wEfAAEBAAAAAAADAAAAAAALFACpABIAAQEAAAAAAAMBAAAAAAsUAKkAEgABAQAAAAAAAQAAAAA=
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