Changeset 115

Show
Ignore:
Timestamp:
13.12.2006 11:55:11 (2 years ago)
Author:
decoder
Message:

Fixed hash creation bug, O_RDWR -> O_CREAT|O_RDWR (Thanks to Eric Yiu)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/devel/FuzzyOcr/Hashing.pm

    r114 r115  
    144144        use MLDBM::Sync; 
    145145        my %DB = (); my $dbm; my $sdbm; 
    146         $sdbm = tie %DB, 'MLDBM::Sync', $dbfile, O_RDWR or $ret++; 
     146        $sdbm = tie %DB, 'MLDBM::Sync', $dbfile, O_CREAT|O_RDWR or $ret++; 
    147147        if ($ret>0) { 
    148148            warnlog("No Image Hash database found at \"$dbfile\", or permissions wrong.");