[Top][All Lists]

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

Re: [Fwd: [bug #6047] rm -f "" prints diagnostic message under the Hurd]

From: Ognyan Kulev
Subject: Re: [Fwd: [bug #6047] rm -f "" prints diagnostic message under the Hurd]
Date: Thu, 29 Apr 2004 14:48:40 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-0.backports.org.1

Ognyan Kulev wrote:
No such file or directory. A component of a specified pathname does not exist, or the pathname is an empty string.

Again, the easiest is to make diskfs_lookup return ENOENT when empty string is given. Or we can change dir_* functions, which is not hard. glibc can be changed too, but I suppose we want Hurd RPCs to have the POSIX behaviour.

For completeness, it should be noted that name passed to diskfs_lookup and dir_* is pathname component, not whole pathname. The ENOENT error in POSIX is about whole pathname being empty string. So if glibc is changed to handle empty pathnames and diskfs is not touched, we'll become POSIX-compliant (in handling empty pathnames).


reply via email to

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