X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 2 Mar 2009 14:58:23 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [1.7] Editing in /etc
Message-ID: <20090302135823.GA32160@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <2bf229d30902271645u74a7beb3n64b3312e2889e30b@mail.gmail.com> <2bf229d30902271853w1f4f8da5w5728fa179e2bdf30@mail.gmail.com> <2bf229d30902280210h7e39865bw7ff889c879c9f081@mail.gmail.com> <2bf229d30903020536h632e001dg6e1252d359993548@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <2bf229d30903020536h632e001dg6e1252d359993548@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mar  2 08:36, Chris Sutcliffe wrote:
> >> Looks like it's related to some issue reading stdin... I executed vim
> >> in debug mode ('vim -D passwd') and got the following:
> >
> > Fixed...  I messed up the permissions in my /dev directory.
> 
> Perhaps I spoke to soon...  I'm still having the issue, this time with
> a domain based user.

I can't reproduce that, neither from a console window, nor from a mintty
window.

> I executed 'mkpasswd -l -c > /etc/passwd' which again acted as
> expected, and the /etc/passwd file was created.  I went to edit the
> file with 'vim -D /etc/passwd' to change the users' default group and
> vim again displayed the message about an error opening input.

So this does not only occur in /etc?  What happens if you start vim
without the -D flag?
> 
> Looking in /dev I have:

The content of /dev shouldn't matter, in theory.

> $ ls -ltr /proc/self/fd/0
> lrwxrwxrwx 1 csutclif Users 0 Nov 30  2006 /proc/self/fd/0 -> /dev/tty0
> 
> however, there is no /dev/tty0.  Should there be?  If so, how do I create it?

http://cygwin.com/1.7/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices

> I'm at a loss here, could anybody hazard an idea as to what could be
> happening, or how I could further debug the issue?

Maybe something in /etc is making problems but I can't imagine what that
is.  This is a typical case where you just have to debug this.  Strace
might reveal a problem here.  Or maybe it's a BLODA problem.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

