From 5c16c0163a55608cca39e8601b687af9786a8d80 Mon Sep 17 00:00:00 2001 From: Igor Ivanov Date: Mon, 11 Dec 2017 12:27:40 +0200 Subject: [PATCH] issue: 1214453 Fix daemon for powerpc Some version of fanotify_init() has internal check for event_f_flags that can return EINVAL for hardcoded KERNEL_O_LARGEFILE Use O_LARGEFILE. Signed-off-by: Igor Ivanov --- tools/daemon/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/daemon/notify.c b/tools/daemon/notify.c index 5295758ca..0029cc86b 100644 --- a/tools/daemon/notify.c +++ b/tools/daemon/notify.c @@ -54,7 +54,7 @@ #include "daemon.h" #ifndef KERNEL_O_LARGEFILE -#if defined(__aarch64__) +#if defined(__aarch64__) || defined(__powerpc__) /* Check architecture: if we are running on ARM, * omit KERNEL_O_LARGEFILE from fanotify_init invocation because * KERNEL_O_LARGEFILE breaks program on armv running at least kernel 4.4+