Subversion Repositories wimsdev

Rev

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

Rev 10 Rev 3836
Line 58... Line 58...
58
                        setenv("tmp_dir",tbuf,1);
58
                        setenv("tmp_dir",tbuf,1);
59
                        chmod(session_name,
59
                        chmod(session_name,
60
                              S_IRUSR|S_IWUSR|S_IXUSR|
60
                              S_IRUSR|S_IWUSR|S_IXUSR|
61
                              S_IRGRP|S_IWGRP|S_IXGRP|
61
                              S_IRGRP|S_IWGRP|S_IXGRP|
62
                              S_IROTH|S_IWOTH|S_IXOTH);
62
                              S_IROTH|S_IWOTH|S_IXOTH);
63
                        chdir("public_html");
63
                        (void)chdir("public_html");
64
                        call_ssh(1,"bin/ch..root cleantmpdir");
64
                        call_ssh(1,"bin/ch..root cleantmpdir");
65
                        chdir(cwd);
65
                        (void)chdir(cwd);
66
                        chmod(session_name,S_IRUSR|S_IWUSR|S_IXUSR);
66
                        chmod(session_name,S_IRUSR|S_IWUSR|S_IXUSR);
67
                        fprintf(stderr,"%s\n",tbuf);
67
                        fprintf(stderr,"%s\n",tbuf);
68
                    }
68
                    }
69
                    if(remove_tree(session_name)!=0) {
69
                    if(remove_tree(session_name)!=0) {
70
                        fprintf(stderr,"Unable to remove session %s: %s.\n",
70
                        fprintf(stderr,"Unable to remove session %s: %s.\n",