static int local_chown(FsContext *fs_ctx, const char *path, FsCred *credp)

{

    if ((credp->fc_uid == -1 && credp->fc_gid == -1) ||

            (fs_ctx->fs_sm == SM_PASSTHROUGH)) {

        return lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid);

    } else if (fs_ctx->fs_sm == SM_MAPPED) {

        return local_set_xattr(rpath(fs_ctx, path), credp);

    } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {

        return lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid);

    }

    return -1;

}

static int local_chown(FsContext *fs_ctx, const char *path, FsCred *credp)

{

    if ((credp->fc_uid == -1 && credp->fc_gid == -1) ||

            (fs_ctx->fs_sm == SM_PASSTHROUGH)) {

        return lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid);

    } else if (fs_ctx->fs_sm == SM_MAPPED) {

        return local_set_xattr(rpath(fs_ctx, path), credp);

    } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {

        return lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid);

    }

    return -1;

}

    } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {     } else if (fs_ctx->fs_sm == SM_PASSTHROUGH) {
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2)

{

    if ((VAR_2->fc_uid == -1 && VAR_2->fc_gid == -1) ||

            (VAR_0->fs_sm == SM_PASSTHROUGH)) {

        return lchown(rpath(VAR_0, VAR_1), VAR_2->fc_uid, VAR_2->fc_gid);

    } else if (VAR_0->fs_sm == SM_MAPPED) {

        return local_set_xattr(rpath(VAR_0, VAR_1), VAR_2);

    } else if (VAR_0->fs_sm == SM_PASSTHROUGH) {

        return lchown(rpath(VAR_0, VAR_1), VAR_2->fc_uid, VAR_2->fc_gid);

    }

    return -1;

}

static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2)
{ if ((VAR_2->fc_uid == -1 && VAR_2->fc_gid == -1) ||
(VAR_0->fs_sm == SM_PASSTHROUGH)) { return lchown(rpath(VAR_0, VAR_1), VAR_2->fc_uid, VAR_2->fc_gid); } else if (VAR_0->fs_sm == SM_MAPPED) { return local_set_xattr(rpath(VAR_0, VAR_1), VAR_2); } else if (VAR_0->fs_sm == SM_PASSTHROUGH) { return lchown(rpath(VAR_0, VAR_1), VAR_2->fc_uid, VAR_2->fc_gid); } return -1; }