bugThe GNU Hurd - Bugs: bug #48437, diskfs_S_file_set_translator...


bug #48437: diskfs_S_file_set_translator shortcutting "/hurd/fifo" to S_IFIFO discards options

Submitter:  Kalle Olavi Niemitalo <kon>
Submitted:  Thu 07 Jul 2016 12:31:28 PM UTC
Category:  Hurd Servers Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 

* Mandatory Fields

Add a New Comment Rich Markup

Sat 25 Nov 2017 01:25:01 AM UTC, comment #1: 

I just repeated the commands, and this is indeed still a bug.

Joshua Branson <joshuabranson>
Thu 07 Jul 2016 12:31:28 PM UTC, original submission:  

Using hurd 1:0.8.git20160522-4 from Debian:

$ ls -ld hop
ls: cannot access 'hop': No such file or directory
$ touch hop
$ settrans hop /hurd/fifo --multiple-readers
$ showtrans hop

The output from showtrans should have been "/hurd/fifo --multiple-readers".
This happens on ext2fs and tmpfs.

ext2fs uses libdiskfs/file-set-trans.c, which recognizes "/hurd/fifo" and converts it to S_IFIFO, but ignores the arguments.  In contrast, if it converts "/hurd/symlink" to S_IFLNK, it saves the first argument of the translator as the target of the symlink (and ignores any remaining arguments).  I think it should check that it understood everything that was in the arguments, and if not, save the arguments unchanged as if it hadn't recognized the translator.

Kalle Olavi Niemitalo <kon>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by joshuabranson (Posted a comment)
  • -email is unavailable- added by kon (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code