search for: is_veto_path

Displaying 1 result from an estimated 1 matches for "is_veto_path".

2001 Apr 14
4
Code to hide inaccessible files/directories
...(NULL); } dirp->pos = dirp->numentries = dirp->mallocsize = 0; dirp->data = dirp->current = NULL; while ((n = dos_readdirname(p))) { int l = strlen(n)+1; /* If it's a vetoed file, pretend it doesn't even exist */ if (use_veto && conn && IS_VETO_PATH(conn, n)) continue; /* hack to hide files that the user doesn't have read perms to */ snprintf(fullPath,2048,"%s/%s/%s",conn->origpath,name,n); if (access(fullPath,R_OK) ) continue; if (used + l > dirp->mallocsize) { int s = MAX(used+l,used+2000);...