From f5858d0bce93eaa9bc455da3382a34b778939cd6 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 6 Jan 2023 07:31:22 -0800 Subject: sysutils/genimage: New port: Tool to generate multiple filesystem and flash images from a tree --- sysutils/genimage/files/patch-config.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sysutils/genimage/files/patch-config.c (limited to 'sysutils/genimage/files/patch-config.c') diff --git a/sysutils/genimage/files/patch-config.c b/sysutils/genimage/files/patch-config.c new file mode 100644 index 000000000000..1a1663c75946 --- /dev/null +++ b/sysutils/genimage/files/patch-config.c @@ -0,0 +1,19 @@ +--- config.c.orig 2023-01-06 17:56:22 UTC ++++ config.c +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + + #include "genimage.h" + +@@ -259,7 +260,7 @@ static char *abspath(const char *path) + if (*path == '/') + return strdup(path); + +- xasprintf(&p, "%s/%s", get_current_dir_name(), path); ++ xasprintf(&p, "%s/%s", getcwd(NULL, PATH_MAX), path); + + return p; + } -- cgit v1.2.3