From: Mikko Rasa Date: Sun, 22 Aug 2021 09:33:32 +0000 (+0300) Subject: Use correct directory separator to check for absolute binary path X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ed4f5d6012b5f638ac21d96bc2ddf12b08a2d217;p=libs%2Fcore.git Use correct directory separator to check for absolute binary path --- 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);