Hi, had a quick look on your commit and you really should not use pow()
from math.h but use shift left i.e. "<<"

#include<math.h>
#define OOBS_MAX_UID MIN (G_MAXINT32, pow (2, 8 * sizeof (uid_t) - 1))
#define OOBS_MAX_GID MIN (G_MAXINT32, pow (2, 8 * sizeof (gid_t) - 1))

is identical to this which avoids doing floating point

#define OOBS_MAX_UID MIN (G_MAXINT32, 1L<<(8 * sizeof (uid_t) - 1))
#define OOBS_MAX_GID MIN (G_MAXINT32, 1L<<(8 * sizeof (gid_t) - 1))

-- 
problem with big uids in "Users and Groups" tool
https://bugs.launchpad.net/bugs/303997
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to liboobs in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to