]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: refactor clear set uid/gid if -1
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 16 Aug 2017 16:48:09 +0000 (09:48 -0700)
committerNathan Cutler <ncutler@suse.com>
Tue, 5 Sep 2017 09:27:46 +0000 (11:27 +0200)
commit469e50646c7d83e1f4e59ea90aeeefbd437976e8
tree98096ead2a3df79db274f761f60414a73de41309
parent823585311c41729309809690a7df5cb83c4ece12
client: refactor clear set uid/gid if -1

libfuse already does not set FUSE_SET_ATTR_UID if the chown uid is -1. However,
another libcephfs client could call setattr directly with -1 as the uid/gid so we
should handle that potential case.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 6448d4927fb4cfc29392ff58da8775d68e3e875b)
src/client/Client.cc