Yes, the use of SET_UID/SET_GID in smbfs is a bug. The current meaning of
SET_UID is:
convert from 32-bit uid (in the kernel) to 16-bit uid (for user),
if necessary
The usage in smbfs was to copy a binary mount parameter structure from
user space into kernel. The user space
Alexander:
Sorry, I didn't write back to you sooner.
I don't understand the need for this patch unless it is working around a
bug in the compiler.
More likely, the bug is in smbfs passing something other than
typeof(uid_t) to high2lowuid().
I'll take a look and write back.
Thanks,
Chris
On