mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
27 lines
855 B
Diff
27 lines
855 B
Diff
--- a/CPP/7zip/UI/Console/Main.cpp
|
|
+++ b/CPP/7zip/UI/Console/Main.cpp
|
|
@@ -283,7 +283,7 @@ static void ShowProgInfo(CStdOutStream *so)
|
|
{
|
|
FString temp;
|
|
NDir::MyGetTempPath(temp);
|
|
- if (!temp.IsEqualTo(STRING_PATH_SEPARATOR "tmp" STRING_PATH_SEPARATOR))
|
|
+ if (!temp.IsEqualTo("@TERMUX_PREFIX@/tmp/"))
|
|
*so << " temp_path:" << temp;
|
|
}
|
|
}
|
|
--- a/CPP/Windows/FileDir.cpp
|
|
+++ b/CPP/Windows/FileDir.cpp
|
|
@@ -748,10 +748,10 @@ bool MyGetTempPath(FString &path)
|
|
#else // !_WIN32
|
|
|
|
// FIXME: improve that code
|
|
- path = STRING_PATH_SEPARATOR "tmp";
|
|
+ path = "@TERMUX_PREFIX@/tmp";
|
|
const char *s;
|
|
if (NFind::DoesDirExist_FollowLink(path))
|
|
- s = STRING_PATH_SEPARATOR "tmp" STRING_PATH_SEPARATOR;
|
|
+ s = "@TERMUX_PREFIX@/tmp/";
|
|
else
|
|
s = "." STRING_PATH_SEPARATOR;
|
|
path = s;
|