Rev 3836 | Rev 8155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3836 | Rev 7491 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | switch(c) { |
34 | switch(c) { |
35 | case 'c': { /* class */ |
35 | case 'c': { /* class */ |
36 | if(cwdtype!=dir_home) { |
36 | if(cwdtype!=dir_home) { |
37 | sockerror(2,"option_conflict"); return -1; |
37 | sockerror(2,"option_conflict"); return -1; |
38 | } |
38 | } |
39 | if(strlen(p1)>=MAX_CLASSLEN || !myisdigit(*p1) || |
39 | if(strlen(p1)>=MAX_CLASSLEN || !myisdigit(*p1) || |
40 | strstr(p1,"..")!=NULL) { |
40 | strstr(p1,"..")!=NULL) { |
41 | sockerror(2,"illegal_fname %s",p1); |
41 | sockerror(2,"illegal_fname %s",p1); |
42 | return -1; |
42 | return -1; |
43 | } |
43 | } |
44 | (void)chdir(classd); if(chdir(p1)<0) { |
44 | (void)chdir(classd); if(chdir(p1)<0) { |