diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-01-06 07:31:22 -0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-01-06 10:17:45 -0800 |
commit | f5858d0bce93eaa9bc455da3382a34b778939cd6 (patch) | |
tree | 46e79663e448891c2a9a44664695939bba117d68 /sysutils/genimage/files/patch-config.c | |
parent | devel/fnm: New port: Fast and simple Node.js version manager, built in Rust (diff) |
sysutils/genimage: New port: Tool to generate multiple filesystem and flash images from a tree
Diffstat (limited to 'sysutils/genimage/files/patch-config.c')
-rw-r--r-- | sysutils/genimage/files/patch-config.c | 19 |
1 files changed, 19 insertions, 0 deletions
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 <errno.h> + #include <getopt.h> + #include <unistd.h> ++#include <sys/syslimits.h> + + #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; + } |