diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-11-28 15:36:05 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-11-28 15:36:05 -0200 |
commit | c68deeb4b9c22787b8ae73196afc2e48355365f1 (patch) | |
tree | d840e15f41326a592143f1e9341680ea52e682a0 /libre/paxd-libre/fix_issues.patch | |
parent | f896a68fdc3b8e0ddacba80795208c60d926f059 (diff) |
paxd-libre-1.3-2: add fix_issues.patch to solve paxd-libre.conf path issue
Diffstat (limited to 'libre/paxd-libre/fix_issues.patch')
-rw-r--r-- | libre/paxd-libre/fix_issues.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libre/paxd-libre/fix_issues.patch b/libre/paxd-libre/fix_issues.patch new file mode 100644 index 000000000..07120cd51 --- /dev/null +++ b/libre/paxd-libre/fix_issues.patch @@ -0,0 +1,25 @@ +diff -Nur paxd-libre-1.3.orig/paxd-libre.c paxd-libre-1.3/paxd-libre.c +--- paxd-libre-1.3.orig/paxd-libre.c 2014-11-08 19:40:27.000000000 -0200 ++++ paxd-libre-1.3/paxd-libre.c 2014-11-28 15:30:42.304537269 -0200 +@@ -28,7 +28,7 @@ + perror("inotify"); + return EXIT_FAILURE; + } +- int watch_conf = inotify_add_watch_x(inotify, "/etc/paxd.conf", IN_MODIFY); ++ int watch_conf = inotify_add_watch_x(inotify, "/etc/paxd-libre.conf", IN_MODIFY); + int watch_conf_dir = inotify_add_watch_x(inotify, "/etc/", IN_CREATE | IN_MOVED_TO); + int watch_pacman = inotify_add_watch_x(inotify, "/var/lib/pacman/", IN_DELETE); + +@@ -45,10 +45,10 @@ + + if (event->wd == watch_conf) { + fprintf(stderr, "configuration modified, updating attributes\n"); +- } else if (event->wd == watch_conf_dir && !strcmp(event->name, "paxd.conf")) { ++ } else if (event->wd == watch_conf_dir && !strcmp(event->name, "paxd-libre.conf")) { + fprintf(stderr, "configuration created or moved to, updating attributes\n"); + close(watch_conf); +- watch_conf = inotify_add_watch_x(inotify, "/etc/paxd.conf", IN_MODIFY); ++ watch_conf = inotify_add_watch_x(inotify, "/etc/paxd-libre.conf", IN_MODIFY); + } else if (event->wd == watch_pacman && !strcmp(event->name, "db.lck")) { + fprintf(stderr, "pacman finished a transaction, updating attributes\n"); + } else { |