=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/repository.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/cvs/repository.c 2008/01/10 09:57:51 1.16 --- src/usr.bin/cvs/repository.c 2008/01/31 13:54:12 1.17 *************** *** 1,4 **** ! /* $OpenBSD: repository.c,v 1.16 2008/01/10 09:57:51 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: repository.c,v 1.17 2008/01/31 13:54:12 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 150,158 **** cvs_file_get(fpath, 0, dl); break; case CVS_FILE: ! if ((s = strrchr(fpath, ',')) != NULL) *s = '\0'; ! cvs_file_get(fpath, 0, fl); break; default: fatal("type %d unknown, shouldn't happen", type); --- 150,160 ---- cvs_file_get(fpath, 0, dl); break; case CVS_FILE: ! if ((s = strrchr(fpath, ',')) != NULL && ! s != fpath && !strcmp(s, RCS_FILE_EXT)) { *s = '\0'; ! cvs_file_get(fpath, 0, fl); ! } break; default: fatal("type %d unknown, shouldn't happen", type);