}
endgrent();
- qsort(*g, sizeof(gid_t), *n, gid_cmp);
+ qsort(*g, *n, sizeof(gid_t), gid_cmp);
}
ObtPaths* obt_paths_new(void)
struct stat st;
BSEARCH_SETUP(guint);
- stat(path, &st);
+ if (stat(path, &st) != 0)
+ return FALSE;
if (!S_ISREG(st.st_mode))
return FALSE;