Signed-off-by: Greg Farnum <gfarnum@redhat.com>
// check quota
uint64_t endoff = offset + size;
+ UserPerm perms(f->actor_uid, f->actor_gid); //
if (endoff > in->size && is_quota_bytes_exceeded(in, endoff - in->size))
return -EDQUOT;
* change out from under us.
*/
if (f->flags & O_APPEND) {
- // FIXME
- UserPerm perms(0, 0);
- int r = _lseek(f, 0, SEEK_END, perms);
+ int r = _lseek(f, 0, SEEK_END, f->perms);
if (r < 0) {
unlock_fh_pos(f);
return r;