+ STREQLEN (username, pw->pw_name, ulen))
+ return pw->pw_dir;
+ }
+
+ return NULL;
+}
+
+static const char *
+find_home_for_current_user (void)
+{
+ struct passwd *pw;
+ uid_t euid = geteuid ();
+
+ setpwent ();
+ while ((pw = getpwent ()) != NULL) {
+ if (pw->pw_uid == euid)