Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=df11b4390d26bc9dda948666a7c134c462ec6bcc
commit df11b4390d26bc9dda948666a7c134c462ec6bcc Author: James Buren <[email protected]> Date: Sun Oct 20 05:14:53 2013 -0500 utility: stat -> ispathpresent diff --git a/src/utility.c b/src/utility.c index f0a9843..0a5bae7 100644 --- a/src/utility.c +++ b/src/utility.c @@ -250,7 +250,6 @@ extern int get_number_padding(int n) extern bool find_unused_raid_device(struct raid **raids,char *s,size_t n) { size_t j = 0; - struct stat st = {0}; if(raids == 0 || s == 0 || n == 0) { @@ -268,7 +267,7 @@ extern bool find_unused_raid_device(struct raid **raids,char *s,size_t n) if( lfind(s,raids,&j,sizeof(struct raid *),raid_compare) != 0 || - stat(s,&st) == 0 + ispathpresent(s,S_IFBLK,0660) ) continue; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
