Follow-up Comment #1, task #5724 (project hurd):

struct dirent has unsigned char d_type, whose value may be DT_DIR or something
else.  But several file-system implementations on the Hurd always store
DT_UNKNOWN there, regardless of what is on disk, so there should be no problem
if a translator changes a file to a directory or vice versa.

* ext2fs: DT_UNKNOWN since 1999-10-03.
* fatfs: DT_UNKNOWN from the beginning.
* ftpfs: Actual type, but netfs_set_translator returns EROFS.
* isofs: DT_UNKNOWN from the beginning.
* nfs: DT_UNKNOWN since 1996-03-19.
* procfs: DT_UNKNOWN from the beginning.
* tmpfs: DT_DIR for "." and "..", DT_UNKNOWN otherwise.

On 2003-01-21, a coreutils bug was fixed where rm would assume the entry is
not a directory if d_type == DT_UNKNOWN.

It seems the implementation was already correct when this task was filed on
2006-07-17.  The IRC logs at http://richtlijn.be/~larstiq/hurd/ start from
2006-08-20 so I don't know what kind of problem was seen then.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/task/?5724>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to