Replaced getenv(3) with the passwd struct