# HG changeset patch # User Sascha Wilde # Date 1395762498 -3600 # Node ID c92297bcda8f23fec14c60d6708c051b60db81ca # Parent 70d627e9e80115884149b29f7f02da3851d25c1f dirent d_type is not supported on Windows, so use new port_isdir(). FWIW, according to the man page d_type isn't guarantied to work for all file systems on linux neither. diff -r 70d627e9e801 -r c92297bcda8f cinst/mozilla.c --- a/cinst/mozilla.c Tue Mar 25 16:45:32 2014 +0100 +++ b/cinst/mozilla.c Tue Mar 25 16:48:18 2014 +0100 @@ -170,7 +170,6 @@ get_profile_inis () { char **inis = NULL; -#ifndef _WIN32 char path[LINEBUFLEN]; char *fqpath; DIR *mozdir; @@ -192,7 +191,11 @@ { while ((mozdirent = readdir(mozdir)) != NULL) { - if (mozdirent->d_type == DT_DIR) + snprintf(path, LINEBUFLEN, "%s/%s/%s", + home, + "/.mozilla", + mozdirent->d_name); + if (port_isdir(path)) { snprintf(path, LINEBUFLEN, "%s/%s/%s/%s", home, @@ -222,7 +225,6 @@ fprintf(stderr, "Windows not yet supported"); abort(); } -#endif return inis; }