On Thu, Jan 12, 2017 at 10:12:16AM +0100, Dietmar Maurer wrote: > This should be checked somewhere else.
should or is? ;) > > Signed-off-by: Dietmar Maurer <diet...@proxmox.com> > --- > src/PVE/CLIHandler.pm | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm > index f08371c..687ac45 100644 > --- a/src/PVE/CLIHandler.pm > +++ b/src/PVE/CLIHandler.pm > @@ -506,10 +506,6 @@ sub run_cli_handler { > > initlog($exename); > > - if ($class !~ m/^PVE::Service::/) { > - die "please run as root\n" if $> != 0; > - } > - > no strict 'refs'; > my $def = ${"${class}::cmddef"}; > > -- > 2.1.4 > > _______________________________________________ > pve-devel mailing list > pve-devel@pve.proxmox.com > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel