From ed4f5d6012b5f638ac21d96bc2ddf12b08a2d217 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 22 Aug 2021 12:33:32 +0300 Subject: [PATCH] Use correct directory separator to check for absolute binary path --- source/fs/dir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fs/dir.cpp b/source/fs/dir.cpp index 8625b78..be47162 100644 --- a/source/fs/dir.cpp +++ b/source/fs/dir.cpp @@ -37,7 +37,7 @@ const Path &get_bin_dir(const string &argv0) if(!(argv0==last_argv0)) { Path exe; - if(argv0.find('/')==string::npos) + if(argv0.find(DIRSEP)==string::npos) { const char *path = getenv("PATH"); vector dirs = split(path, ITEMSEP); -- 2.43.0