summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-04-20 03:40:44 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2017-04-20 16:22:55 +0200
commitfa5f6835e00c4927cae051328642b2a5a0d8b1c1 (patch)
tree3f32032a6214781b6ee266e9d6bf2976e06949ed /include
parent33f01b5d5bd98fceee0ba46cdbddb60b36fc650e (diff)
downloadacl-fa5f6835e00c4927cae051328642b2a5a0d8b1c1.tar.gz
libacl: Fix acl_from_text() returning NULL on all input
Commit 5dac69ce914202c587f00da638123403111ca673 introduced a regression: apparently, gcc treats #pragma GCC diagnostic pop as a kind of statement, so this causes parse_acl_entry() to return -1 unconditionally, and therefore causes acl_from_text() to return NULL unconditionally, too. Fix this by moving the pragma after the "if" statement. Reported-by: Valery Inozemtsev <shrek@altlinux.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions