git-svn-id: http://svn.planet-lab.org/svn/fprobe-ulog/trunk@18794
8c455092-636d-4788-adf5-
e71def0336e8
system(gzip_cmd);
}
snprintf(cur_output_file,MAX_PATH_LEN,"%s.%d",fname,cur_epoch);
system(gzip_cmd);
}
snprintf(cur_output_file,MAX_PATH_LEN,"%s.%d",fname,cur_epoch);
- if ((write_fd = open(cur_output_file, O_RDWR|O_CREAT|O_TRUNC)) < 0) {
+ if ((write_fd = open(cur_output_file, O_RDWR|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH)) < 0) {
my_log(LOG_ERR, "open(): %s (%s)\n", cur_output_file, strerror(errno));
exit(1);
}
my_log(LOG_ERR, "open(): %s (%s)\n", cur_output_file, strerror(errno));
exit(1);
}