]> Savannah Git Hosting - gnulib.git/commit
acl: fix missing return on Cygwin
authorEric Blake <eblake@redhat.com>
Tue, 8 Mar 2016 22:35:30 +0000 (15:35 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 8 Mar 2016 22:46:41 +0000 (15:46 -0700)
commitbdb72bc645460210bb85f2a5690640a2976f41b0
tree0f8bebc2e0fe41673ad1ee52dcfc2dcc1d7d2dbe
parent91d878ad50757397efd16debfe0bab0173965f15
acl: fix missing return on Cygwin

Compilation on Cygwin 2.4.1 resulted in an 'install' that behaved
differently depending on compile-time flags; I traced it to this
warning, where the difference was based on what was left in the
return register:

lib/set-permissions.c: In function 'set_acls_from_mode':
lib/set-permissions.c:273:1: warning: control reaches end of non-void
function [-Wreturn-type]

* lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
fall off end of function. Fixes http://bugs.gnu.org/22949

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/set-permissions.c