Use errno property instead of setErrno in std.path.

This commit is contained in:
alexrp 2012-07-09 04:35:56 +02:00
parent 9f5c180b66
commit d27198beed

View file

@ -2708,7 +2708,7 @@ string expandTilde(string inputPath)
// Obtain info from database.
passwd *verify;
setErrno(0);
errno = 0;
if (getpwnam_r(cast(char*) username.ptr, &result, cast(char*) extra_memory, extra_memory_size,
&verify) == 0)
{