about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRory Bradford <roryrjb@gmail.com>2020-08-08 12:01:25 +0100
committerRory Bradford <roryrjb@gmail.com>2020-08-08 12:01:25 +0100
commit2ffea3b5158349e05fde36eef67179fa8da29808 (patch)
tree614ef8d52a16ddda1560cc5708d288918f3f5a60
parent11a95ee7fa9886ee2f62df940c7a53cfa1a8698a (diff)
downloadrf-2ffea3b5158349e05fde36eef67179fa8da29808.tar.gz
Fix loop break out logic
Also changes _XOPEN_SOURCE to 700 to fix includes.

Signed-off-by: Rory Bradford <roryrjb@gmail.com>
-rw-r--r--ignore.c3
-rw-r--r--rf.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/ignore.c b/ignore.c
index 8abca6e..e5e324c 100644
--- a/ignore.c
+++ b/ignore.c
@@ -1,6 +1,5 @@
 
-#define _POSIX_C_SOURCE 200809L
-#define _XOPEN_SOURCE 600
+#define _XOPEN_SOURCE 700
 
 #include <ctype.h>
 #include <stdio.h>
diff --git a/rf.c b/rf.c
index edaeef0..7510027 100644
--- a/rf.c
+++ b/rf.c
@@ -1,8 +1,7 @@
 #define _BSD_SOURCE
 #define _DEFAULT_SOURCE
 
-#define _POSIX_C_SOURCE 200809L
-#define _XOPEN_SOURCE 600
+#define _XOPEN_SOURCE 700
 
 #include <dirent.h>
 #include <errno.h>
@@ -109,7 +108,7 @@ static int recurse_find(char **patterns, int *pattern_count, char *dirname,
 
 			if (stat(full_path, &entry_stat)) {
 				perror("stat");
-				exit(EXIT_FAILURE);
+				continue;
 			}
 
 			if (entry_stat.st_mode & S_IFDIR) {