Ignore:
Timestamp:
02/27/14 16:47:12 (6 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
37adeaf
Parents:
1fa5bc4
Message:

Add access() calls to PBIFS fuse module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbifs/main.c

    r3d98a68 r1fa43f8  
    252252} 
    253253 
     254static int pbi_access(const char *path, int mask) 
     255{ 
     256        char newpath[MAXPATHLEN]; 
     257        get_modified_path(newpath, path); 
     258 
     259        int res = access(newpath, mask); 
     260        if (res == -1) 
     261                return -errno; 
     262        return 0; 
     263} 
     264 
    254265static int pbi_getattr(const char *path, struct stat *stbuf) 
    255266{ 
     
    572583 
    573584static struct fuse_operations pbi_oper = { 
     585        .access         = pbi_access, 
    574586        .chmod          = pbi_chmod, 
    575587        .chown          = pbi_chown, 
Note: See TracChangeset for help on using the changeset viewer.