summaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-14 11:39:48 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 08:50:45 +0100
commit614b022c76e72a3d20ff48f2bc58ca7c3f86b84f (patch)
tree81660985be78f2523f61d0a4448c4a7fb400db8c /src/run
parentbasic/signal-util: drop unneeded extra byte from buffer (diff)
downloadsystemd-614b022c76e72a3d20ff48f2bc58ca7c3f86b84f.tar.xz
systemd-614b022c76e72a3d20ff48f2bc58ca7c3f86b84f.zip
Move and rename parse_path_argument() function
This fits better in shared/, and the new parse-argument.c file is a good home for it.
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 29b182718b..11166d2e78 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -21,6 +21,7 @@
#include "fd-util.h"
#include "format-util.h"
#include "main-func.h"
+#include "parse-argument.h"
#include "parse-util.h"
#include "path-util.h"
#include "pretty-print.h"
@@ -470,7 +471,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_WORKING_DIRECTORY:
- r = parse_path_argument_and_warn(optarg, true, &arg_working_directory);
+ r = parse_path_argument(optarg, true, &arg_working_directory);
if (r < 0)
return r;