This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-5
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin at cygwin dot com
- Date: Fri, 17 Apr 2015 12:29:38 +0100
- Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-5
- Authentication-results: sourceware.org; auth=none
- References: <announce dot 20150415160254 dot GF7343 at calimero dot vinschen dot de> <CAK-n8j6MpTscHoOCmzkrrTHAxtzL4XuV5TY-x5f-S6mJ8WQk5A at mail dot gmail dot com> <20150416162146 dot GD3657 at calimero dot vinschen dot de>
On 16/04/2015 17:21, Corinna Vinschen wrote:
Btw., it would be nice to know why XWin tries to chown a file.
Jon?
This seems to be in trans_mkdir() in libxtrans [1], which tries to make
sure that /tmp/.X11-unix (the directory in which the server's
unix-domain sockets are created) is owned by uid 0, gid 0.
[1] http://cgit.freedesktop.org/xorg/lib/libxtrans/tree/Xtransutil.c#n591
$ gdb XWin
[...]
Reading symbols from XWin...Reading symbols from /usr/lib/debug//usr/bin/XWin.exe.dbg...done.
done.
(gdb) b fchown
Breakpoint 1 at 0x10057aa80
(gdb) r
Starting program: /usr/bin/XWin
Breakpoint 1, 0x000000010057aa80 in fchown ()
(gdb) bt
#0 0x000000010057aa80 in fchown ()
#1 0x0000000100573bac in trans_mkdir (mode=1023, path=0x1005b47c8 <__func__.16196+2499> "/tmp/.X11-unix") at /usr/include/X11/Xtrans/Xtransutil.c:591
[...]
--
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