linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / apr / is-this-a-compiler-bug.patch
blobbbc10fabb2685ad6fe67f1416f0b7c4f65b45b33
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
3 @@ -297,9 +297,11 @@
4 finfo->pool = pool;
5 finfo->fname = fname;
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;
12 + } else {
13 + return (wanted & ~finfo->valid) ? APR_INCOMPLETE : APR_SUCCESS;
14 + }
16 else {
17 #if !defined(ENOENT) || !defined(ENOTDIR)