version 1.151, 2006/03/27 16:01:18 |
version 1.152, 2006/03/27 21:56:32 |
|
|
int rcs_errno = RCS_ERR_NOERR; |
int rcs_errno = RCS_ERR_NOERR; |
char *timezone_flag = NULL; |
char *timezone_flag = NULL; |
|
|
static int rcs_write(RCSFILE *); |
|
static int rcs_parse_init(RCSFILE *); |
static int rcs_parse_init(RCSFILE *); |
static int rcs_parse_admin(RCSFILE *); |
static int rcs_parse_admin(RCSFILE *); |
static int rcs_parse_delta(RCSFILE *); |
static int rcs_parse_delta(RCSFILE *); |
|
|
struct rcs_delta *rdp; |
struct rcs_delta *rdp; |
struct rcs_lock *lkr; |
struct rcs_lock *lkr; |
|
|
fmode = 0; |
fmode = S_IRUSR|S_IRGRP|S_IROTH; |
flags &= 0xffff; /* ditch any internal flags */ |
flags &= 0xffff; /* ditch any internal flags */ |
|
|
if (((ret = stat(path, &st)) == -1) && (errno == ENOENT)) { |
if (((ret = stat(path, &st)) == -1) && (errno == ENOENT)) { |
|
|
* path is in <rf_path>. |
* path is in <rf_path>. |
* Returns 0 on success, or -1 on failure. |
* Returns 0 on success, or -1 on failure. |
*/ |
*/ |
static int |
int |
rcs_write(RCSFILE *rfp) |
rcs_write(RCSFILE *rfp) |
{ |
{ |
FILE *fp; |
FILE *fp; |
|
|
} |
} |
} |
} |
|
|
if ((chmod(rfp->rf_path, S_IRUSR|S_IRGRP|S_IROTH) == -1)) { |
if ((chmod(rfp->rf_path, rfp->rf_mode) == -1)) { |
cvs_log(LP_ERRNO, "failed to chmod `%s'", |
cvs_log(LP_ERRNO, "failed to chmod `%s'", |
rfp->rf_path); |
rfp->rf_path); |
return (-1); |
return (-1); |
|
|
} |
} |
return (bp); |
return (bp); |
} |
} |
|
|
|
|
#if !defined(RCSPROG) |
#if !defined(RCSPROG) |
|
|