0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-23 14:46:18 +00:00
glibc-packages/gpkg/file/fix-paths.patch
Ivan Max 544ab0e7a3
new pkgs to gpkg (#209)
gpkg/apache2
gpkg/apr-util
gpkg/apr
gpkg/asciidoc
gpkg/cmocka
gpkg/docbook-xml
gpkg/docbook-xsl
gpkg/git
gpkg/gtk-doc
gpkg/json-c
gpkg/libsasl
gpkg/libsecret
gpkg/libsodium
gpkg/libtpms
gpkg/libxss
gpkg/mariadb
gpkg/nano
gpkg/openldap
gpkg/postgresql
gpkg/python-py3c
gpkg/serf
gpkg/subversion
gpkg/swig
gpkg/tk
gpkg/tpm2-tss
gpkg/unixodbc
gpkg/utf8proc
gpkg/file
gpkg/less
gpkg/libseccomp
2024-05-03 18:33:35 +03:00

25 lines
852 B
Diff

diff -uNr file-5.42/src/compress.c file-5.42.mod/src/compress.c
--- file-5.42/src/compress.c 2022-04-11 19:15:07.000000000 +0100
+++ file-5.42.mod/src/compress.c 2022-07-22 17:17:00.944240000 +0100
@@ -465,7 +465,7 @@
(void)strlcat(buf, "/", sizeof(buf));
(void)strlcat(buf, "file.XXXXXX", sizeof(buf));
#else
- (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof(buf));
+ (void)strlcpy(buf, "@TERMUX_PREFIX_CLASSICAL@/tmp/file.XXXXXX", sizeof buf);
#endif
#ifndef HAVE_MKSTEMP
{
diff -uNr file-5.42/src/file.h file-5.42.mod/src/file.h
--- file-5.42/src/file.h 2022-05-28 21:24:09.000000000 +0100
+++ file-5.42.mod/src/file.h 2022-07-22 17:16:04.080017000 +0100
@@ -96,7 +96,7 @@
#define ENABLE_CONDITIONALS
#ifndef MAGIC
-#define MAGIC "/etc/magic"
+#define MAGIC "@TERMUX_PREFIX@/etc/magic"
#endif
#if defined(__EMX__) || defined (WIN32)