Ok I understand. Since my account is an ldap account, there is no entry in the /etc/passwd with my uid 1010 but there is one for user john with uid 1000.
So, you can run WPS with john now (or sudo with ldap account)?
I must say sorry because we use getpwuid to identify if is different user
running wps on the same OS ( for multiple instance purpose only)
but that's unnecessary as UID is already unique
and getuid shall always be successful as manual says but getpwuid not (and the code not check null pointer at all )
We've fixed it yesterday, the tests just for finding out why failed.
Now we got it.
Thanks for your feedback