X-Git-Url: http://git.rot13.org/?p=Fuse-DBI;a=blobdiff_plain;f=DBI.pm;h=89889bd60b1e67430b0eaef2f0f7be4a5e58654e;hp=7c071328989af201e108f9fa6f5879b0c5669fde;hb=73d0b06304c5f122f550b153f47a9f573e57fde8;hpb=52fd51112a572de41ec1f2020cd1c10ff189a150 diff --git a/DBI.pm b/DBI.pm index 7c07132..89889bd 100755 --- a/DBI.pm +++ b/DBI.pm @@ -12,7 +12,7 @@ use DBI; use Carp; use Data::Dumper; -our $VERSION = '0.07'; +our $VERSION = '0.08'; # block size for this filesystem use constant BLOCK => 1024; @@ -329,12 +329,14 @@ sub read_filenames { # read them in with sesible defaults while (my $row = $sth->{'filenames'}->fetchrow_hashref() ) { + $row->{'filename'} ||= 'NULL-'.$row->{'id'}; $files{$row->{'filename'}} = { size => $row->{'size'}, mode => $row->{'writable'} ? 0644 : 0444, id => $row->{'id'} || 99, }; + my $d; foreach (split(m!/!, $row->{'filename'})) { # first, entry is assumed to be file