delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/16/05:47:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <20040916094708.77372.qmail@web90008.mail.scd.yahoo.com>
Date: Thu, 16 Sep 2004 10:47:08 +0100 (BST)
From: =?iso-8859-1?q?Lionel=20Barnett?= <lionelbuk AT yahoo DOT co DOT uk>
Reply-To: cygwin AT cygwin DOT com
Subject: Re: Problem with cat under bash shell
To: cygwin AT cygwin DOT com
In-Reply-To: <20040916092623.GC17670@cygbert.vinschen.de>
MIME-Version: 1.0
X-IsSubscribed: yes

 --- Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote: 
> On Sep 16 10:09, Lionel Barnett wrote:
> >  --- Lionel Barnett <lionelbuk AT yahoo DOT co DOT uk> wrote: 
> > > Hi,
> > > 
> > > Still no joy on this problem (Cygwin ver 1.5.11)
> > > 
> > > bash -c "cat << EOF"
> > > 
> > > fails with:
> > > 
> > > cat: -: Permission denied
> > > 
> > > The corresponding command under sh, tcsh or zsh causes no
> problem.
> > 
> > Seems like it could be a permissions problem with /tmp.  Lines 1162
> -
> > 1164 in the strace output (attached) are:
> > 
> >   743  120125 [main] cat 2668 fhandler_base::raw_read: ReadFile
> > /tmp/sh-thd-1095306567 failed, Win32 error 59
> >  1746  121871 [main] cat 2668 seterrno_from_win_error:
> > /netrel/src/cygwin-1.5.11-1/winsup/cygwin/fhandler.cc:263 windows
> error
> > 59
> >   756  122627 [main] cat 2668 geterrno_from_win_error: unknown
> windows
> > error 59, setting errno to 13
> 
> That looks really weird.  Did you notice that win32 error 59 means
> "An unexpected network error occurred." ?

Yes, I was aware of that.

> Does that give a hint to you?

Um, not really... except that it appears the problem doesn't arise if
/tmp is accessed locally rather than over the network. However, I
constantly read/write/execute files all over the network via Cygwin
tools and have not encountered any problems previously. Is there
something special about /tmp that I am not aware of?

Lionel


=====
Lionel B


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

--
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