Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/aio.c

    r44 r165  
    254254        a->aio_sigevent.sigev_value.sival_int = aio_ex->mid;
    255255
     256        become_root();
    256257        if (SMB_VFS_AIO_READ(fsp,a) == -1) {
    257258                DEBUG(0,("schedule_aio_read_and_X: aio_read failed. "
    258259                         "Error %s\n", strerror(errno) ));
    259260                delete_aio_ex(aio_ex);
    260                 return False;
    261         }
     261                unbecome_root();
     262                return False;
     263        }
     264        unbecome_root();
    262265
    263266        DEBUG(10,("schedule_aio_read_and_X: scheduled aio_read for file %s, "
     
    344347        a->aio_sigevent.sigev_value.sival_int = aio_ex->mid;
    345348
     349        become_root();
    346350        if (SMB_VFS_AIO_WRITE(fsp,a) == -1) {
    347351                DEBUG(3,("schedule_aio_wrote_and_X: aio_write failed. "
    348352                         "Error %s\n", strerror(errno) ));
    349353                delete_aio_ex(aio_ex);
    350                 return False;
    351         }
     354                unbecome_root();
     355                return False;
     356        }
     357        unbecome_root();
    352358
    353359        if (!write_through && !lp_syncalways(SNUM(fsp->conn))
Note: See TracChangeset for help on using the changeset viewer.