Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-19 Thread Qian Hong
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

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-18 Thread Qian Hong
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

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-16 Thread Qian Hong
Hi John, This looks like a bug in wineserver. Cygwin strace log show an access error soon after fhandler_base::open() [main] mktemp 111 fhandler_base::open: (\??\C:\cygwin\tmp\tmp.kAEScb0yvo, 0x108A02) [main] mktemp 111 __set_errno: int aclsort32(int, int, aclent_t*):1403 setting errno 22

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-15 Thread Corinna Vinschen
On Feb 14 05:10, Qian Hong wrote: > Hi John, > > Thanks a lot for testing Cygwin on Wine. > Wine Staging team and I done some Cygwin support work on Wine, we are > glad to see people using Cygwin on Wine! > However, generic speaking, if Cygwin works on Windows but breaks on > Wine, I believe the f

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-14 Thread Andrey Repin
Greetings, Qian Hong! > Thanks a lot for testing Cygwin on Wine. > Wine Staging team and I done some Cygwin support work on Wine, we are > glad to see people using Cygwin on Wine! > However, generic speaking, if Cygwin works on Windows but breaks on > Wine, I believe the first place to report is t

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-13 Thread Qian Hong
I'm not able to debug it right now, but if you have time, I would suggest the following approach: Firstly, get two/three strace logs, one from Cygwin 2.3 + Wine, one from Cygwin 2.5 + Wine, and one from Cygwin 2.5 on Windows if you have Windows. Using vimdiff to compare 1.log, 2.log and 3.log, rem

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-13 Thread Qian Hong
Hi John, Thanks a lot for testing Cygwin on Wine. Wine Staging team and I done some Cygwin support work on Wine, we are glad to see people using Cygwin on Wine! However, generic speaking, if Cygwin works on Windows but breaks on Wine, I believe the first place to report is the Wine project. You ar

Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-13 Thread John Hood
cygcheck runs OK from CMD, though not under bash. So here is that. regards, --jh Cygwin Configuration Diagnostics Current System Time: Sat Feb 13 15:36:41 2016 Windows 2003 Server Ver 5.2 Build 3790 Service Pack 2 Running under WOW64 on AMD64 Path: C:\windows\system32 C:\window

mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2

2016-02-13 Thread John Hood
Hi all, I installed wine-staging (i386) 1.9.3 and Cygwin (i386) on my Ubuntu 15.10 laptop in hopes of being able to maintain Cygwin compatibility of some software without having to actually use Windows. I've seen several difficulties, but the most serious one was that gcc would fail with var