termux-packages/packages/yuma123/netconf-src-subsys-netconf-subsystem.c.patch

12 lines
391 B
Diff
Raw Normal View History

2022-04-04 13:53:38 +02:00
--- a/netconf/src/subsys/netconf-subsystem.c
+++ b/netconf/src/subsys/netconf-subsystem.c
@@ -138,7 +138,7 @@
int arg_idx = 1;
char defname[21];
- strncpy(defname, "/tmp/subsys-err.log", 20);
+ strncpy(defname, "@TERMUX_PREFIX@/tmp/subsys-err.log", 20);
err_filename = defname;
while ( arg_idx < argc-1 ) {
if ( !strcmp( argv[arg_idx], "-filename" ) ||