delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/18/10:16:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 18 Dec 2007 10:15:52 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Michael Kairys <kairys AT comcast DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Intermittent perl crash (Attn: coreutils and bash maintainer)
In-Reply-To: <fk8lpb$l1t$1@ger.gmane.org>
Message-ID: <Pine.GSO.4.63.0712181009420.28181@access1.cims.nyu.edu>
References: <fk695v$1t2$1 AT ger DOT gmane DOT org> <6910a60712171332t3e8db66fn4cf1a64fe611011 AT mail DOT gmail DOT com> <fk7b48$u8u$1 AT ger DOT gmane DOT org> <47674E3E DOT 2080201 AT cygwin DOT com> <fk8lpb$l1t$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, 18 Dec 2007, Michael Kairys wrote:

> "Larry Hall (Cygwin)" <reply-to-list-only-lh AT XXXXXX DOT XXX> wrote in message
> news:47674E3E DOT 2080201 AT cygwin DOT com...

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > <http://cygwin.com/faq/faq-nochunks.html#faq.using.chmod>
>
> Thanks... I read with partial understanding but could not come up with any
> action items...
>
> My resolution was to verify that my temp is in fact writeable and then
> comment out the check in rebaseall.
> So far so good: no fork failures.

I'm guessing one can reconstruct your permissions as follows:

$ cd /tmp
$ mkdir nw
$ setfacl -m g:Users:rwx nw
$ chmod a-rwx nw
$ ls -ld nw
d---------+ 2 igor root 0 Dec 18 10:08 nw/
$ touch nw/foo
$ ls -l nw/foo
-rw------- 1 igor root 0 Dec 18 10:08 nw/foo
$ if [ -w nw ]; then echo "Yes"; else echo "No"; fi
No
$

One solution is, of course, "chmod u+rwx /tmp".  The other is to change
rebaseall to try creating a file anyway and checking the result.

There was some talk of changing coreutils to use "access" for testing
permissions, which would probably solve this as well.  However, even if I
use "/bin/test -w nw", I get a "No".  Has this change ever happened?  If
it ever does, bash will also need to be rebuilt so that its builtins use
the same interface.  It helps that both have the same maintainer.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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