bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is ``access (NULL, whatever)'' supposed to do?


From: olafBuddenhagen
Subject: Re: What is ``access (NULL, whatever)'' supposed to do?
Date: Tue, 10 Apr 2007 17:25:54 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hi,

On Mon, Apr 09, 2007 at 10:50:26PM +0200, Thomas Schwinge wrote:

> The same happens when passing NULL file names to `open' and a lot (if
> not all) of their friends.

Yes, that was the Qt situation.

> So, should instead `file_name_lookup' or `hurd_file_name_lookup' be
> made robust enough to handle a NULL file name?  (Fail with EINVAL?)

Problem is that while it's easy to check for NULL, we can't easily catch
other kinds of bad pointers. Considering this, I'm not sure it's
worthwhile to specially handle the NULL case.

-antrik-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]