From af631023f52bcb28cb55a2cdbf8406254416705c Mon Sep 17 00:00:00 2001 From: ravinsp <33562092+ravinsp@users.noreply.github.com> Date: Wed, 2 Feb 2022 10:13:32 +0530 Subject: [PATCH] sashi cli realpath condition fix. --- sashi-cli/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sashi-cli/main.cpp b/sashi-cli/main.cpp index 74b7372..0926271 100644 --- a/sashi-cli/main.cpp +++ b/sashi-cli/main.cpp @@ -105,7 +105,7 @@ int parse_cmd(int argc, char **argv) // Take the realpath of sashi cli exec path. { std::array buffer; - if (!realpath(argv[0], buffer.data())) + if (realpath(argv[0], buffer.data())) { exec_dir = dirname(buffer.data()); }