1 --- apr-1.5.1/file_io/unix/filestat.c 2014-11-01 06:42:50.000000000 -0400
2 +++ apr-1.5.1/file_io/unix/filestat.c.new 2014-11-01 07:07:32.000000000 -0400
6 fill_out_finfo(finfo, &info, wanted);
7 - if (wanted & APR_FINFO_LINK)
8 - wanted &= ~APR_FINFO_LINK;
9 - return (wanted & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
10 + if (wanted & APR_FINFO_LINK) {
11 + return ((wanted & ~APR_FINFO_LINK) & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
13 + return (wanted & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
17 #if !defined(ENOENT) || !defined(ENOTDIR)