|
From: | Ognyan Kulev |
Subject: | Re: [Fwd: [bug #6047] rm -f "" prints diagnostic message under the Hurd] |
Date: | Fri, 30 Apr 2004 18:21:10 +0300 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
Marcus Brinkmann wrote:
I'd like Roland's opinion on this. Roland, for many functions using dir_lookup we get EINVAL rathern than the ENOENT required by POSIX when a pathname is the empty string "". Where should this be fixed?
Just a small correction: dir_lookup will treat "" like ".". The problem is with dir_{link,unlink,mkdir,rmdir,rename} which receive the last pathname component of the referred pathname. When this pathname component is "", these functions use diskfs_lookup and return EINVAL.
What POSIX requires precisely is ENOENT when the whole pathname is empty string: http://mail.gnu.org/archive/html/bug-hurd/2004-04/msg00252.html
Regards, ogi
[Prev in Thread] | Current Thread | [Next in Thread] |