chiark / gitweb /
libgpg-error: workaround no stdout atexit with constructor prior to N (#1017)
[termux-packages] / packages / daemonize / daemonize.c.patch
1 diff -u -r ../daemonize-release-1.7.7/daemonize.c ./daemonize.c
2 --- ../daemonize-release-1.7.7/daemonize.c      2015-12-11 17:54:43.000000000 -0500
3 +++ ./daemonize.c       2016-12-23 03:40:30.055592421 -0500
4 @@ -38,7 +38,10 @@
5  static bool         be_verbose = FALSE;
6  static const char  *user       = NULL;
7  static char       **cmd        = NULL;
8 -static const char  *cwd        = "/";
9 +/* Termux patch: Use a readable directory for e.g. runsvdir to work,
10 +   as / is not readable starting from Android 7:
11 +   https://github.com/termux/termux-packages/issues/614 */
12 +static const char  *cwd        = "@TERMUX_PREFIX@";
13  static int          null_fd    = -1;
14  static int          out_fd     = -1;
15  static int          err_fd     = -1;