hurd: Fix FS_RETRY_MAGICAL "machtype" handling
commitf56ad6174c62aa38f7edf68167d620482b776dc9
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 29 Apr 2023 13:13:54 +0000 (29 16:13 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 29 Apr 2023 14:58:10 +0000 (29 16:58 +0200)
tree9c0750753da4a89c074d0480b232883e249183e6
parent89f1e04174a6b6548d19f7f301ddcc8ab91d91df
hurd: Fix FS_RETRY_MAGICAL "machtype" handling

We need to set file_name, not update retryname. This is what the other
branches do.

Before this change, any attempt to access such a file would segfault due
to file_name being unset:

$ settrans -ac /tmp/my-machtype /hurd/magic machtype
$ cat /tmp/my-machtype
Segmentation fault

Checked on i686-gnu.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230429131354.2507443-7-bugaevc@gmail.com>
hurd/lookup-retry.c