version 1.10, 2007/02/07 23:47:56 |
version 1.11, 2007/02/17 18:23:43 |
|
|
|
|
cvs_log(LP_TRACE, "cvs_repository_unlock(%s)", repo); |
cvs_log(LP_TRACE, "cvs_repository_unlock(%s)", repo); |
|
|
if (cvs_path_cat(repo, CVS_LOCK, fpath, sizeof(fpath)) >= sizeof(fpath)) |
(void)xsnprintf(fpath, sizeof(fpath), "%s/%s", repo, CVS_LOCK); |
fatal("cvs_repository_unlock: truncation"); |
|
|
|
/* XXX - this ok? */ |
/* XXX - this ok? */ |
cvs_worklist_run(&repo_locks, cvs_worklist_unlink); |
cvs_worklist_run(&repo_locks, cvs_worklist_unlink); |
|
|
|
|
cvs_log(LP_TRACE, "cvs_repository_lock(%s)", repo); |
cvs_log(LP_TRACE, "cvs_repository_lock(%s)", repo); |
|
|
if (cvs_path_cat(repo, CVS_LOCK, fpath, sizeof(fpath)) >= sizeof(fpath)) |
(void)xsnprintf(fpath, sizeof(fpath), "%s/%s", repo, CVS_LOCK); |
fatal("cvs_repository_unlock: truncation"); |
|
|
|
for (i = 0; i < CVS_LOCK_TRIES; i++) { |
for (i = 0; i < CVS_LOCK_TRIES; i++) { |
if (cvs_quit) |
if (cvs_quit) |
|
|
if (cvs_file_chkign(dp->d_name)) |
if (cvs_file_chkign(dp->d_name)) |
continue; |
continue; |
|
|
if (cvs_path_cat(wdir, dp->d_name, |
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", wdir, dp->d_name); |
fpath, MAXPATHLEN) >= MAXPATHLEN) |
(void)xsnprintf(rpath, MAXPATHLEN, "%s/%s", dir, dp->d_name); |
fatal("cvs_repository_getdir: truncation"); |
|
|
|
if (cvs_path_cat(dir, dp->d_name, |
|
rpath, MAXPATHLEN) >= MAXPATHLEN) |
|
fatal("cvs_repository_getdir: truncation"); |
|
|
|
/* |
/* |
* nfs and afs will show d_type as DT_UNKNOWN |
* nfs and afs will show d_type as DT_UNKNOWN |