static int xmp_lock(const char *path, struct fuse_file_info *fi, int cmd, struct flock *lock) { (void) path; return ulockmgr_op(fi->fh, cmd, lock, &fi->lock_owner, sizeof(fi->lock_owner)); }
static int xmp_lock (const char *path, struct fuse_file_info *fi, int cmd, struct flock *lock) { int ret; (void) path; openrfs_fuse_drop_privs (); ret = ulockmgr_op (fi->fh, cmd, lock, &fi->lock_owner, sizeof (fi->lock_owner)); openrfs_fuse_restore_privs (); return ret; }