use most permissive time range they provide
- Change (GRSTerrorLogFunc) to return int, to allow
if-less C macro using && instead.
+- Remove 2 argument open(...O_CREAT...) instance in
+ grst_admin_file.c
* Fri Jul 03 2009 Andrew McNab <Andrew.McNab@cern.ch>
- ==== GridSite version 1.7.4 ====
* Thu Jul 02 2009 Andrew McNab <Andrew.McNab@cern.ch>
char *dir_path, char *file, char *dir_uri,
char *admin_file)
{
- int fd, numfiles;
+ int numfiles;
char *dir_path_file, *dir_path_vfile, *p, *vfile, *dnlistsuri,
*fulluri, *server_name, *realfile;
struct stat statbuf;
GRSThttpBody bp;
struct dirent *subdirfile_ent;
DIR *subDIR;
+ FILE *fp;
if( verifypasscode()==0 ){
strcat(dir_path_file, "/");
strcat(dir_path_file, vfile);
- fd = open(dir_path_file, O_WRONLY | O_CREAT);
- if (fd != -1) close(fd);
+ fp = fopen(dir_path_file, "w");
+ if (fp != NULL) fclose(fp);
}
printf("Status: 302 Moved Temporarily\nContent-Length: 0\n"