1 parent
fd1d32d314
commit
fdec5f7b6e
1 file changed
+1
-1
@@ -58,7 +58,7 @@ auto change_to_process_directory() -> bool {
|
||||
auto res = proc_pidpath(getpid(), reinterpret_cast<void *>(path.data()),
|
||||
static_cast<uint32_t>(path.size()));
|
||||
if (res == 0) {
|
||||
path = utils::path::get_parent_path(path) :
|
||||
path = utils::path::get_parent_path(path);
|
||||
}
|
||||
#else // !defined(__APPLE__)
|
||||
auto res = readlink("/proc/self/exe", path.data(), path.size());
|
||||
|
||||
Reference in new issue
Block a user