summaryrefslogtreecommitdiff
path: root/sdn.cpp
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-20 08:31:22 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-20 08:33:17 +0100
commitc9662f1a7bef8ccb6013dcc2a4a15b58f1d27a4b (patch)
tree7f6fbed7f229b0339b2c8aaabba3e3aa6b8d511d /sdn.cpp
parent9ddeb036526a2b2ae7cb0144d239b40b88517914 (diff)
downloadsdn-c9662f1a7bef8ccb6013dcc2a4a15b58f1d27a4b.tar.gz
sdn-c9662f1a7bef8ccb6013dcc2a4a15b58f1d27a4b.tar.xz
sdn-c9662f1a7bef8ccb6013dcc2a4a15b58f1d27a4b.zip
Fix passing filenames starting with -
We don't want to pass them as program options.
Diffstat (limited to 'sdn.cpp')
-rw-r--r--sdn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdn.cpp b/sdn.cpp
index b8191a8..9496475 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -1,7 +1,7 @@
//
// sdn: simple directory navigator
//
-// Copyright (c) 2017 - 2023, Přemysl Eric Janouch <p@janouch.name>
+// Copyright (c) 2017 - 2024, Přemysl Eric Janouch <p@janouch.name>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted.
@@ -917,7 +917,7 @@ fun run_program (initializer_list<const char *> list, const string &filename) {
for (auto program : list)
if ((found = program))
break;
- g.ext_helper = found + (" " + shell_escape (filename));
+ g.ext_helper = found + (" -- " + shell_escape (filename));
g.quitting = true;
return;
}