Subversion Repositories wimsdev

Rev

Rev 8185 | Rev 8849 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8185 Rev 8342
Line 36... Line 36...
36
    struct stat st;
36
    struct stat st;
37
    int i,t;
37
    int i,t;
38
    for(i=0;i<putcnt;i++) {
38
    for(i=0;i<putcnt;i++) {
39
        t=stat(putlist[i],&st); if(t || !S_ISDIR(st.st_mode)) continue;
39
        t=stat(putlist[i],&st); if(t || !S_ISDIR(st.st_mode)) continue;
40
        snprintf(fname,sizeof(fname),"%s/.wimshome",putlist[i]);
40
        snprintf(fname,sizeof(fname),"%s/.wimshome",putlist[i]);
41
        accessfile(buf,"r","%s",fname);
41
        wlogdaccessfile(buf,"r","%s",fname);
42
        p1=find_word_start(buf); *find_word_end(p1)=0;
42
        p1=find_word_start(buf); *find_word_end(p1)=0;
43
        if(strcmp(p1,cwd)==0) continue;
43
        if(strcmp(p1,cwd)==0) continue;
44
        accessfile(cwd,"w","%s",fname);
44
        wlogdaccessfile(cwd,"w","%s",fname);
45
        chmod(fname,S_IRUSR|S_IWUSR);
45
        chmod(fname,S_IRUSR|S_IWUSR);
46
    }
46
    }
47
}
47
}
48
 
48