Jan Nieuwenhuizen, le lun. 11 mai 2020 10:53:58 +0200, a ecrit: > Samuel Thibault writes: > > > Samuel Thibault, le lun. 11 mai 2020 10:42:08 +0200, a ecrit: > >> > 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 > > > > That's a bit sad, but I'm not so surprised either. I don't remember if > > that was discussed at the time. > > At first glance it felt like a bug/non-finished thing; setttrans does > not require the user to resort to \0-hackery.
It does not because settrans is supposed to *be* the user-visible interface. setfattr is not supposed to be. Samuel