Ticket #1904: patchor.diff

File patchor.diff, 528 bytes (added by cehoyos, 4 years ago)
  • libavformat/file.c

    diff --git a/libavformat/file.c b/libavformat/file.c
    index 209957b..e805dd9 100644
    a b static int file_check(URLContext *h, int mask) 
    9090    if (ret < 0) 
    9191        return AVERROR(errno); 
    9292 
    93     ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0; 
    94     ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0; 
     93    ret |= st.st_mode&(S_IRUSR|S_IROTH) ? mask&AVIO_FLAG_READ  : 0; 
     94    ret |= st.st_mode&(S_IWUSR|S_IWOTH) ? mask&AVIO_FLAG_WRITE : 0; 
    9595 
    9696    return ret; 
    9797}