diff options
Diffstat (limited to 'src/mount')
-rw-r--r-- | src/mount/mount-tool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index b0de83b8d0..8b1cb247e9 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -332,6 +332,9 @@ static int parse_argv(int argc, char *argv[]) { assert_not_reached(); } + if (arg_user) + arg_ask_password = false; + if (arg_user && arg_transport != BUS_TRANSPORT_LOCAL) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Execution in user context is not supported on non-local systems."); |