diff -ru portage-utils-0.1.24.orig/main.c portage-utils-0.1.24/main.c --- portage-utils-0.1.24.orig/main.c 2007-02-12 07:33:46.000000000 +0900 +++ portage-utils-0.1.24/main.c 2007-02-27 09:10:42.000000000 +0900 @@ -505,6 +505,7 @@ f = 0; if (readlink("/etc/make.profile", profile, sizeof(profile)) == -1) strcpy(profile, "/etc/make.profile"); + chdir("/etc"); do { if (f == 0) snprintf(portage_file, sizeof(portage_file), "%s/make.defaults", profile);