Handle more actions

tags/0.1.2
Daniel Berteaud 12 years ago
parent 318bc49acf
commit 151ff8b893
  1. 14
      root/usr/bin/samba-db-logd

@ -113,12 +113,22 @@ while (defined(my $line=$tail->read)){
} }
my @other = split /\|/, $line; my @other = split /\|/, $line;
if ($action eq 'opendir'){ if (($action eq 'opendir') ||
# Oct 12 17:20:24 sme8 smbd[11176]: admin|192.168.7.50|pc10-45|intranet|opendir|ok|./ ($action eq 'chdir') ||
($action eq 'connect') ||
($action eq 'disconnect') ||
($action eq 'close'){
# Oct 12 17:20:24 sme8 smbd[11176]: admin|192.168.7.50|pc11-45|intranet|opendir|ok|./
$status = $other[5]; $status = $other[5];
$file_src = $other[6]; $file_src = $other[6];
$access_mode = 'r'; $access_mode = 'r';
} }
elsif ($action eq 'chdir'){
#Oct 19 19:14:52 sme8 smbd[2241]: admin|192.168.7.50|pc11-45|intranet|chdir|ok|chdir|/
$status = $other[5];
$file_src = $other[7];
$access_mode = 'r';
}
elsif (($action eq 'rmdir') || ($action eq 'mkdir') || ($action eq 'unlink')){ elsif (($action eq 'rmdir') || ($action eq 'mkdir') || ($action eq 'unlink')){
$status = $other[5]; $status = $other[5];
$file_src = $other[6]; $file_src = $other[6];

Loading…
Cancel
Save