IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18416


Ignore:
Timestamp:
Jul 3, 2008, 12:01:03 PM (18 years ago)
Author:
jhoblitt
Message:

don't report a stat() as successful even when it fails under --debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/nebdiskd

    r18231 r18416  
    33# Copyright (C) 2007  Joshua Hoblitt
    44#
    5 # $Id: nebdiskd,v 1.5 2008-06-20 03:34:28 jhoblitt Exp $
     5# $Id: nebdiskd,v 1.6 2008-07-03 22:01:03 jhoblitt Exp $
    66
    77use strict;
     
    189189
    190190    foreach my $path (@$mounts) {
    191         stat File::Spec->canonpath($path) or warn "can not stat path: $path";
    192         print "stated $path\n" if $debug;
     191        if (stat File::Spec->canonpath($path)) {
     192            print "stated $path\n" if $debug;
     193        } else {
     194            warn "can not stat path: $path";
     195        }
    193196    }
    194197}
Note: See TracChangeset for help on using the changeset viewer.