version 1.53, 2007/01/31 21:07:36 |
version 1.54, 2007/02/17 18:23:43 |
|
|
FILE *fp; |
FILE *fp; |
char fpath[MAXPATHLEN]; |
char fpath[MAXPATHLEN]; |
|
|
if (cvs_path_cat(server_currentdir, CVS_PATH_STATICENTRIES, fpath, |
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", |
MAXPATHLEN) >= MAXPATHLEN) |
server_currentdir, CVS_PATH_STATICENTRIES); |
fatal("cvs_server_static_directory: truncation"); |
|
|
|
if ((fp = fopen(fpath, "w+")) == NULL) { |
if ((fp = fopen(fpath, "w+")) == NULL) { |
cvs_log(LP_ERRNO, "%s", fpath); |
cvs_log(LP_ERRNO, "%s", fpath); |
|
|
FILE *fp; |
FILE *fp; |
char tagpath[MAXPATHLEN]; |
char tagpath[MAXPATHLEN]; |
|
|
if (cvs_path_cat(server_currentdir, CVS_PATH_TAG, tagpath, |
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", |
MAXPATHLEN) >= MAXPATHLEN) |
server_currentdir, CVS_PATH_TAG); |
fatal("cvs_server_sticky: truncation"); |
|
|
|
if ((fp = fopen(tagpath, "w+")) == NULL) { |
if ((fp = fopen(tagpath, "w+")) == NULL) { |
cvs_log(LP_ERRNO, "%s", tagpath); |
cvs_log(LP_ERRNO, "%s", tagpath); |
|
|
fatal("cvs_server_modified: %s", errstr); |
fatal("cvs_server_modified: %s", errstr); |
xfree(len); |
xfree(len); |
|
|
if (cvs_path_cat(server_currentdir, data, fpath, MAXPATHLEN) >= |
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", server_currentdir, data); |
MAXPATHLEN) |
|
fatal("cvs_server_modified: truncation"); |
|
|
|
if ((fd = open(fpath, O_WRONLY | O_CREAT | O_TRUNC)) == -1) |
if ((fd = open(fpath, O_WRONLY | O_CREAT | O_TRUNC)) == -1) |
fatal("cvs_server_modified: %s: %s", fpath, strerror(errno)); |
fatal("cvs_server_modified: %s: %s", fpath, strerror(errno)); |
|
|
struct cvs_ent *ent; |
struct cvs_ent *ent; |
struct timeval tv[2]; |
struct timeval tv[2]; |
|
|
if (cvs_path_cat(server_currentdir, data, fpath, MAXPATHLEN) >= |
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", server_currentdir, data); |
MAXPATHLEN) |
|
fatal("cvs_server_unchanged: truncation"); |
|
|
|
if ((fd = open(fpath, O_RDWR | O_CREAT | O_TRUNC)) == -1) |
if ((fd = open(fpath, O_RDWR | O_CREAT | O_TRUNC)) == -1) |
fatal("cvs_server_unchanged: %s: %s", fpath, strerror(errno)); |
fatal("cvs_server_unchanged: %s: %s", fpath, strerror(errno)); |