Client::init sets this, but if we later call ll_register_callbacks again
with a new set of function pointers that has umask_cb set to nullptr,
it'll override the value in the cmount.
Only reset umask_cb if the one in args is not nullptr.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit
4cb17bb12feaa2b1a78a08612f8e80a191c87e5e)
remount_cb = args->remount_cb;
remount_finisher.start();
}
- umask_cb = args->umask_cb;
+ if (args->umask_cb)
+ umask_cb = args->umask_cb;
}
int Client::test_dentry_handling(bool can_invalidate)