]> 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)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 16 Aug 2017 16:50:05 +0000 (09:50 -0700)
commit6448d4927fb4cfc29392ff58da8775d68e3e875b
tree8c0efddd64a83590895973d99db795b6c0dc1e8d
parenta237e541ff0cbd0bfbb3d6445357362e5c42b11a
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>
src/client/Client.cc