static int pakfire_fhs_check_world_writable(
struct pakfire* pakfire, struct pakfire_file* file) {
+ // Run this check only for regular files
+ switch (pakfire_file_get_type(file)) {
+ case S_IFREG:
+ break;
+
+ default:
+ return 0;
+ }
+
// Fetch path
const char* path = pakfire_file_get_path(file);