aboutsummaryrefslogtreecommitdiff
path: root/bdep/sync.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/sync.cxx')
-rw-r--r--bdep/sync.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx
index 4978169..45ee46c 100644
--- a/bdep/sync.cxx
+++ b/bdep/sync.cxx
@@ -1714,6 +1714,9 @@ namespace bdep
(so.no_fetch ? "--sys-no-fetch" : nullptr),
(so.no_stub ? "--sys-no-stub" : nullptr),
(so.yes ? "--sys-yes" : nullptr),
+ (so.sudo
+ ? cstrings ({"--sys-sudo", so.sudo->c_str ()})
+ : cstrings ()),
args));
// Shouldn't throw, unless something is severely damaged.