Rev 8342 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8342 | Rev 8849 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | char buf[MAX_LINELEN+1], fname[4096]; |
34 | char buf[MAX_LINELEN+1], fname[4096]; |
35 | char *p1; |
35 | char *p1; |
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 |
|
39 | t=stat(putlist[i],&st); if(t || !S_ISDIR(st.st_mode)) continue; |
40 |
|
40 | snprintf(fname,sizeof(fname),"%s/.wimshome",putlist[i]); |
41 |
|
41 | wlogdaccessfile(buf,"r","%s",fname); |
42 |
|
42 | p1=find_word_start(buf); *find_word_end(p1)=0; |
43 |
|
43 | if(strcmp(p1,cwd)==0) continue; |
44 |
|
44 | wlogdaccessfile(cwd,"w","%s",fname); |
45 |
|
45 | chmod(fname,S_IRUSR|S_IWUSR); |
46 | } |
46 | } |
47 | } |
47 | } |
48 | 48 |