mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-11 14:25:40 +00:00
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
--- ./src/rpc/protocol.cpp.orig 2024-12-22 13:09:05.524284387 +0000
|
|
+++ ./src/rpc/protocol.cpp 2024-12-22 13:09:14.987587692 +0000
|
|
@@ -75,7 +75,7 @@
|
|
arg += ".tmp";
|
|
}
|
|
fs::path path(arg);
|
|
- if (!path.is_complete()) path = GetDataDir() / path;
|
|
+ if (!path.is_absolute()) path = GetDataDir() / path;
|
|
return path;
|
|
}
|
|
|
|
--- ./src/util.cpp.orig 2024-12-22 13:04:31.751819668 +0000
|
|
+++ ./src/util.cpp 2024-12-22 13:08:15.774442234 +0000
|
|
@@ -620,7 +620,7 @@
|
|
fs::path GetConfigFile(const std::string &confPath)
|
|
{
|
|
fs::path pathConfigFile(confPath);
|
|
- if (!pathConfigFile.is_complete())
|
|
+ if (!pathConfigFile.is_absolute())
|
|
pathConfigFile = GetDataDir(false) / pathConfigFile;
|
|
|
|
return pathConfigFile;
|
|
@@ -657,7 +657,7 @@
|
|
fs::path GetPidFile()
|
|
{
|
|
fs::path pathPidFile(gArgs.GetArg("-pid", RAVEN_PID_FILENAME));
|
|
- if (!pathPidFile.is_complete()) pathPidFile = GetDataDir() / pathPidFile;
|
|
+ if (!pathPidFile.is_absolute()) pathPidFile = GetDataDir() / pathPidFile;
|
|
return pathPidFile;
|
|
}
|