Jan Nieuwenhuizen, le lun. 11 mai 2020 10:33:53 +0200, a ecrit: > gnu.translator empty if no passive translator > translator and arguments: "/hurd/foo\0arg1\0arg2\0" > > ah...so there's a nice hack (way??) to also pass arguments...
? It's not hack, it's how it's passed on the process main() stack anyway. > diskfs_S_file_set_translator (struct protid *cred, > [...] > if (passivelen && passive[passivelen - 1]) > return EINVAL; > > hmm; so even when there are no arguments, VALUE must end with 0?! That > root@debian:~# setfattr --name=gnu.translator --value='/hurd/pflocal\0' 1 > root@debian:~# showtrans 1 > /hurd/pflocal > --8<---------------cut here---------------end--------------->8--- > > ...so "something" works. Good :) > Sadly, this trick does not work on GNU/Linux. I'm afraid this hasn't > been upstreamed and we would have to debug linux and/or create a patch > for setxattr to accept "gnu." on "Hurd" type file systems. Thoughts? Well, this has to be done, yes, I don't know what else to add :) Samuel