]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Fix executeable access check for the root user 41297/head
authorKotresh HR <khiremat@redhat.com>
Fri, 16 Apr 2021 04:14:05 +0000 (09:44 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 19 May 2021 17:00:47 +0000 (22:30 +0530)
commite9ebde5831bf344b4310f739e13bbcd56ed1818b
treec534b4c78ec37a9ff51f50c1143829aea42f6c74
parent43f62518b5771793eb077385b950dee0c4faed4c
client: Fix executeable access check for the root user

Executeable permission check always returned sucessful
even when executeable bit is not set on any of the user,
group or others. This patch fixes it by overiding
executeable permission check for root only if one of
the executeable bit is set

Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/50060
(cherry picked from commit b20ec2978cd3e16be9f45f1b7860bdae3c738147)

Conflicts:
   src/client/Client.cc: The commit 6aa78836548f (cephfs errno aliases) is not present in
nautilus and some other trivial conflict, may be because some patches are missing
in nautilus.
src/client/Client.cc