:: [DNG] How do I get the user's home …
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Edward Bartolo
Ημερομηνία:  
Προς: dng, tilt!, Rainer Weikusat
Αντικείμενο: [DNG] How do I get the user's home directory path?
I used:

char* home = getenv("HOME");

to get the user's home directory but got "/root" instead. The reason
is backend has a setuid = 0. However, I need to get the unprivileged
user home directory path. Does anyone know of a solution?

After this and some more days of testing, I will be able to upload the
finished code.

Edward