SET_UID usage in smbfs

From: Urban Widmark
Date: Mon Feb 09 2004 - 14:02:50 EST



Hello

I'm wondering about this change in smbfs:

- mnt->uid = OLD_TO_NEW_UID(oldmnt->uid);
- mnt->gid = OLD_TO_NEW_GID(oldmnt->gid);
+ SET_UID(mnt->uid, oldmnt->uid);
+ SET_GID(mnt->gid, oldmnt->gid);

"OLD_TO_NEW_UID" took an old 16bit uid and returned a uid_t
(using low2highuid when appropriate).

SET_UID(var, uid) wants uid to be uid_t and may decide to use high2lowuid.

Was low2highuid not needed in the first place or is the change wrong?
It gives a compile warning about the comparison.


Bitkeeper lists the author as "ak@de[torvalds]". But it also says I'm 11
weeks late and that can't possibly be true ... :)

/Urban

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/