projects
/
pve-access-control.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pveum: check for $cmd being defined
[pve-access-control.git]
/
pveum
diff --git
a/pveum
b/pveum
index a80b4defb9ec83be530b96f7830cf379e47f77ba..c9d602e589869300cdd699341689d56e5f6592a2 100755
(executable)
--- a/
pveum
+++ b/
pveum
@@
-69,7
+69,7
@@
my $cmddef = {
my $cmd = shift;
-if ($cmd ne 'verifyapi' && $cmd ne 'printmanpod') {
+if (
defined($cmd) &&
$cmd ne 'verifyapi' && $cmd ne 'printmanpod') {
die "please run as root\n" if $> != 0;
PVE::INotify::inotify_init();