summaryrefslogtreecommitdiffstats
path: root/kdesudo/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdesudo/main.cpp')
-rw-r--r--kdesudo/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kdesudo/main.cpp b/kdesudo/main.cpp
index b150f16..f5af9ae 100644
--- a/kdesudo/main.cpp
+++ b/kdesudo/main.cpp
@@ -95,7 +95,8 @@ int main(int argc, char **argv)
executable = commandlist[0];
}
}
- else {
+
+ if ((!args->isSet("c")) && (!args->count())) {
kdError() << I18N_NOOP("You must provide the name of the executable you want to run as an argument to kdesudo") << endl;
exit(1);
}