delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/17/07:30:13

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=F5SwCHbep3shcWxf3/tGHxQZ/eXqqo7QHpxNF/4lQBq
/ILJqXWU9ibPFGBAssZ60aw33zuCaAD/oMvv/tYwFO4o9ioF2GE0GX8ax09AiSb/
NREIu0Jsb5eS1C/2EmW2C1zzSZVf3dKzUvPh1cMUOaeny7UXBiZHZyWgeqUtcRmE
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=YvQDptdU/ty6mv/lKsQ1iS7FQQ0=; b=lZtG7M+A+AdXCHXKa
NtoDVRGRtx1UnuoCL8S5s7VukZMc6pThv6eAWKZs2ANO7BPJlx98SL6matmUUHjV
K0E7Rn8CeQTRQU0paq4e8iAzS+C8z8dgoICcPoZgzDHPva2Bbr9TUW44dZMNJMQj
L6qjBk8/Uk/rcZMyDIkwh/ox/U=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: out4-smtp.messagingengine.com
Message-ID: <5530EEA2.6000903@dronecode.org.uk>
Date: Fri, 17 Apr 2015 12:29:38 +0100
From: Jon TURNEY <jon DOT turney AT dronecode DOT org DOT uk>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-5
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>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019