Skip to content

Commit

Permalink
issue: 1214453 Fix daemon for powerpc
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
igor-ivanov authored and liranoz12 committed Dec 11, 2017
1 parent 0fcd733 commit 5c16c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/daemon/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand Down

0 comments on commit 5c16c01

Please sign in to comment.