IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31872


Ignore:
Timestamp:
Jul 13, 2011, 2:11:34 PM (15 years ago)
Author:
watersc1
Message:

Trap out the failure of getxattr if user.copies doesn't exist. That probably doesn't need to die fatally, in any case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-stat

    r31871 r31872  
    4848die "no instances found" unless $instances;   
    4949
    50 my $user_copies = $neb->getxattr($key, "user.copies");
     50my $user_copies;
     51eval {
     52    $user_copies = $neb->getxattr($key, "user.copies");
     53};
    5154unless(defined($user_copies)) {
    5255    $user_copies = 1;
Note: See TracChangeset for help on using the changeset viewer.