On Thu, 30 Jan 2025 at 00:20, Christian Brauner <brauner@xxxxxxxxxx> wrote: > > For string options the kernel will raise the corresponding flag only if > the string isn't empty. So check for the flag. Hmm, seems like this is going to be a common mistake. How about just putting a nul char at sm->str, which will solve this once and for all (any unset str_ offset will point to this empty string)? Then we can say that instead of checking the mask for a string it's okay to rely on it being empty by default. Thanks, Miklos