• Ronnie Sahlberg's avatar
    cifs: handle -EINTR in cifs_setattr · c6cc4c5a
    Ronnie Sahlberg authored
    RHBZ: 1848178
    
    Some calls that set attributes, like utimensat(), are not supposed to return
    -EINTR and thus do not have handlers for this in glibc which causes us
    to leak -EINTR to the applications which are also unprepared to handle it.
    
    For example tar will break if utimensat() return -EINTR and abort unpacking
    the archive. Other applications may break too.
    
    To handle this we add checks, and retry, for -EINTR in cifs_setattr()
    Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    c6cc4c5a
inode.c 74.7 KB