OPNsense Forum

English Forums => Development and Code Review => Topic started by: wimopn on February 21, 2019, 10:05:00 pm

Title: getpwnam_r always "*"
Post by: wimopn on February 21, 2019, 10:05:00 pm
Hi,

In https://forum.opnsense.org/index.php?topic=11719.0 I was asking about users & pw.

I tried to read the users & pw from the system in C with getpwnam_r, and in perl with getpwuid but they keep returning "*" as pw, even executing as root user. The same code on a centos VM works as expected.

I'm obviously doing something wrong, where is the difference between a vm with linux and an embedded freebsd setup ?

Best regards,

Wim