Rev 3843 | Rev 5505 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3843 | Rev 5333 | ||
---|---|---|---|
Line 590... | Line 590... | ||
590 | /* returns 1 if violation */ |
590 | /* returns 1 if violation */ |
591 | int datafile_check(char *name) { |
591 | int datafile_check(char *name) { |
592 | if((untrust&255)==0) return 0; |
592 | if((untrust&255)==0) return 0; |
593 | if(strncmp(name,"data/",strlen("data/"))==0) return 0; |
593 | if(strncmp(name,"data/",strlen("data/"))==0) return 0; |
594 | if(strncmp(name,"authors/",strlen("authors/"))==0) return 0; |
594 | if(strncmp(name,"authors/",strlen("authors/"))==0) return 0; |
- | 595 | if(strncmp(name,"datamodule/",strlen("datamodule/"))==0) return 0; |
|
595 | return 1; |
596 | return 1; |
596 | } |
597 | } |
597 | 598 | ||
598 | /* returns 0 if success */ |
599 | /* returns 0 if success */ |
599 | void readdatafile(char *name) |
600 | void readdatafile(char *name) |