#!/home/product/code/webui-perl/bin/perl -T -I /home/product/code/firmware/current/lib/perl5
#SUDOER_USERS: nobody
#SUDOER_RUNAS_USERS: root, mta
#SUDOER_TAGS: NOPASSWD, NOEXEC
use strict;
use warnings;
use Barracuda::Sudo::Lib;

=pod

=head1 NAME

lsdir

=head1 DESCRIPTION

lists files in whitelisted directory

=cut

my @whitelist = (
    '/data/config_backup'
);

my $out = sudo_out();

my ($directory) = get_argv(is_whitelisted(@whitelist));

print $out (glob $directory) or die $!;

