[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lookup behaviour with root directory
From: |
Roland McGrath |
Subject: |
Re: lookup behaviour with root directory |
Date: |
Mon, 17 Sep 2012 12:37:59 -0700 (PDT) |
O_DIRECTORY is not part of any Hurd RPC protocol. The implementation
in __hurd_file_name_lookup is the only place that's intended to grok
it. The problem seems to be in the server dir_lookup code that is
skipping leading slashes. I really don't know why that is there at
all. If it serves some valid purpose, then at least it should be:
while (path[0] == '/' && path[1] != '\0')
++path;
Thanks,
Roland