IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33924


Ignore:
Timestamp:
May 25, 2012, 11:23:14 AM (14 years ago)
Author:
bills
Message:

check for validity of NEXTEND value returned from fhead. Fails for corrupt files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/repair_bad_instance

    r33197 r33924  
    123123        return 0;
    124124    }
     125    if (! ($nextend =~ /\d+/)) {
     126        print "failed to find NEXTEND for $file. command returned $nextend\n";
     127        return 0;
     128    }
    125129    print "\t$file: $nextend extensions\n";
     130
    126131
    127132    $command = 'fhead -x ' . ($nextend - 1) . " $file | grep EXTNAME | awk '{print \$3}'";
Note: See TracChangeset for help on using the changeset viewer.