version 1.53, 2005/04/12 19:35:32 |
version 1.54, 2005/04/16 19:05:02 |
|
|
cvs_read_rcfile(void) |
cvs_read_rcfile(void) |
{ |
{ |
char rcpath[MAXPATHLEN], linebuf[128], *lp; |
char rcpath[MAXPATHLEN], linebuf[128], *lp; |
int linenum = 0; |
int l, linenum = 0; |
size_t len; |
size_t len; |
struct cvs_cmd *cmdp; |
struct cvs_cmd *cmdp; |
struct passwd *pw; |
struct passwd *pw; |
|
|
return; |
return; |
} |
} |
|
|
snprintf(rcpath, sizeof(rcpath), "%s/%s", pw->pw_dir, CVS_PATH_RC); |
l = snprintf(rcpath, sizeof(rcpath), "%s/%s", pw->pw_dir, CVS_PATH_RC); |
|
if (l == -1 || l >= (int)sizeof(rcpath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rcpath); |
|
return; |
|
} |
|
|
fp = fopen(rcpath, "r"); |
fp = fopen(rcpath, "r"); |
if (fp == NULL) { |
if (fp == NULL) { |