getpwent
returns non-native paths in struct passwd
The Cygwin getpwent
function returns a structure whose
pw_dir
contains a path like /home/username
instead of the true home directory. Also, the pw_shell
field contains /bin/bash
.
On Cygnal, we would like true values to be returned here as native
Windows paths: the same home directory as what is indicated by the
Windows environment variable USERPROFILE
and for the
shell, the path to the cmd.exe
interpreter.
d00eca5a10a69be3ccabf0e165de98ab19ef25b2