version 1.18, 2005/11/28 14:43:59 |
version 1.19, 2005/12/08 18:56:10 |
|
|
static int kflag = RCS_KWEXP_ERR; |
static int kflag = RCS_KWEXP_ERR; |
static int uflag = 0; |
static int uflag = 0; |
static int flags = 0; |
static int flags = 0; |
|
static char *locker = NULL; |
|
|
int |
int |
rcsclean_main(int argc, char **argv) |
rcsclean_main(int argc, char **argv) |
|
|
argc -= rcs_optind; |
argc -= rcs_optind; |
argv += rcs_optind; |
argv += rcs_optind; |
|
|
|
if ((locker = getlogin()) == NULL) |
|
exit(1); |
|
|
if (argc == 0) { |
if (argc == 0) { |
if ((dirp = opendir(".")) == NULL) { |
if ((dirp = opendir(".")) == NULL) { |
cvs_log(LP_ERRNO, "failed to open directory '.'"); |
cvs_log(LP_ERRNO, "failed to open directory '.'"); |
|
|
rcsnum_tostr(frev, numb, sizeof(numb)), |
rcsnum_tostr(frev, numb, sizeof(numb)), |
fpath); |
fpath); |
} |
} |
(void)rcs_lock_remove(file, frev); |
(void)rcs_lock_remove(file, locker, frev); |
} |
} |
|
|
if (TAILQ_EMPTY(&(file->rf_locks))) { |
if (TAILQ_EMPTY(&(file->rf_locks))) { |