Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=0d90a557f73a970bfaf2db0bbe56f0724ebe734b
commit 0d90a557f73a970bfaf2db0bbe56f0724ebe734b Author: James Buren <[email protected]> Date: Sat Oct 19 11:59:10 2013 -0500 main: use ispathpresent() diff --git a/src/main.c b/src/main.c index 4fdd97c..e4f093b 100644 --- a/src/main.c +++ b/src/main.c @@ -19,9 +19,7 @@ static inline bool infvbe(void) { - struct stat st = {0}; - - return (stat("/run/initramfs/live/LiveOS/squashfs.img",&st) == 0 && S_ISREG(st.st_mode)); + return ispathpresent("/run/initramfs/live/LiveOS/squashfs.img",S_IFREG,0444); } static void find_iso_device(void) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
