public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-5
Date: Fri, 17 Apr 2015 11:29:00 -0000	[thread overview]
Message-ID: <5530EEA2.6000903@dronecode.org.uk> (raw)
In-Reply-To: <20150416162146.GD3657@calimero.vinschen.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

  parent reply	other threads:[~2015-04-17 11:29 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 16:04 Corinna Vinschen
2015-04-16 14:25 ` Jim Reisert AD1C
2015-04-16 16:21   ` Corinna Vinschen
2015-04-16 16:29     ` Jim Reisert AD1C
2015-04-16 16:38       ` Corinna Vinschen
2015-04-16 21:05         ` Jim Reisert AD1C
2015-04-16 21:17           ` Ian Lambert
2015-04-17  7:38             ` Corinna Vinschen
2015-04-17 13:17               ` Ian Lambert
2015-04-17 16:23                 ` Corinna Vinschen
2015-04-16 21:20         ` Jim Reisert AD1C
2015-04-17  7:37           ` Corinna Vinschen
2015-04-16 16:43     ` Corinna Vinschen
2015-04-16 19:49       ` Denis Excoffier
2015-04-17  7:40         ` Corinna Vinschen
2015-04-17 11:29     ` Jon TURNEY [this message]
2015-04-17 12:13       ` Corinna Vinschen
2015-04-16 16:53   ` Bryan Berns
2015-04-17  8:16     ` Corinna Vinschen
2015-04-17 10:07       ` Corinna Vinschen
2015-04-17 10:57         ` Bryan Berns
2015-04-17 11:03           ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5530EEA2.6000903@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).