View | Details | Raw Unified | Return to bug 2390
Collapse All | Expand All

(-)lib/Mail/SpamAssassin/BayesStore.pm (-2 / +3 lines)
Lines 1357-1364 Link Here
1357
    $count = 0;
1357
    $count = 0;
1358
    # wrap in eval so it doesn't run in general use.  This accesses db
1358
    # wrap in eval so it doesn't run in general use.  This accesses db
1359
    # modules directly.
1359
    # modules directly.
1360
    eval '
1360
    # Note: (bug 2390), the 'use' needs to be on the same line as the eval
1361
      use ' . $dbm . ';
1361
    # for RPM dependency checks to work properly.  It's lame, but...
1362
    eval 'use ' . $dbm . ';
1362
      tie %in, "' . $dbm . '", $filename, O_RDONLY, 0600;
1363
      tie %in, "' . $dbm . '", $filename, O_RDONLY, 0600;
1363
      %{ $output } = %in;
1364
      %{ $output } = %in;
1364
      $count = scalar keys %{ $output };
1365
      $count = scalar keys %{ $output };

Return to bug 2390