AmendHub

Download:

jcs

/

subtext

/

amendments

/

187

util: Fix return of FIsDir when FStat fails


jcs made amendment 187 over 2 years ago
--- util.c Tue Jun 21 15:17:17 2022 +++ util.c Thu Jul 7 16:17:58 2022 @@ -700,8 +700,8 @@ FIsDir(Str255 path) struct stat st; short ret; - if ((ret = FStat(path, &st)) != 0) - return ret; + if (FStat(path, &st) != 0) + return false; /* bit 4 is set in ioFlAttrib if the item is a directory */ if (st.st_flags & (1 << 4))