From 2ffea3b5158349e05fde36eef67179fa8da29808 Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Sat, 8 Aug 2020 12:01:25 +0100 Subject: Fix loop break out logic Also changes _XOPEN_SOURCE to 700 to fix includes. Signed-off-by: Rory Bradford --- rf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rf.c') 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 #include @@ -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) { -- cgit 1.4.1-2-gfad0 > Profanity fork with TTY improvementsdanisanti <danisanti@tilde.institute>
about summary refs log blame commit diff stats