29 lines
863 B
Diff
29 lines
863 B
Diff
From c4974983f1a6b6590a91a961b8e1a38d6622ef38 Mon Sep 17 00:00:00 2001
|
|
From: Jardel Weyrich <jweyrich@users.noreply.github.com>
|
|
Date: Thu, 14 Dec 2017 11:24:51 -0200
|
|
Subject: [PATCH 11/12] We don't want to ignore DT_REG if, for instance, Linux
|
|
reports it.
|
|
|
|
See https://github.com/merces/pev/pull/121#issuecomment-323853185
|
|
---
|
|
src/plugins.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git src/plugins.c src/plugins.c
|
|
index 3885e01..646b4af 100644
|
|
--- src/plugins.c
|
|
+++ src/plugins.c
|
|
@@ -166,9 +166,8 @@ int plugins_load_all_from_directory(const char *path) {
|
|
|
|
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
case DT_UNKNOWN:
|
|
-#else
|
|
- case DT_REG: // Regular file
|
|
#endif
|
|
+ case DT_REG: // Regular file
|
|
{
|
|
const char *filename = dir_entry->d_name;
|
|
|
|
--
|
|
2.26.2.672.g232c24e857
|
|
|