delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/07/07/13:11:02

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: stat("/") fails
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Tue, 7 Jul 92 9:25:09 PDT
Mailer: Elm [revision: 66.25]

I have found that stat() fails when trying to stat the root directory
"/".  I have tried the following combinations:

	stat("/", &buf);
	stat("/.", &buf);
	stat("c:/", &buf);

All of these fail, and set errno to 2 (file not found).  Does anyone
know why?  Does anyone know how to fix this, or at least a workaround?

I compiled the FSF "ls" program, and it won't give me an ls of "/"
because of this.  Annoying.
--
				Eric Backus
				ericb AT hplsla DOT hp DOT com

- Raw text -


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