=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/util.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- src/usr.bin/cvs/util.c 2005/04/16 20:05:05 1.22 +++ src/usr.bin/cvs/util.c 2005/04/18 21:02:50 1.23 @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.22 2005/04/16 20:05:05 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.23 2005/04/18 21:02:50 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -526,7 +526,7 @@ ef = cvs_ent_open(dpath, O_WRONLY); (void)cvs_ent_close(ef); - root = cdir->cf_ddat->cd_root; + root = cdir->cf_root; l = snprintf(path, sizeof(path), "%s/" CVS_PATH_ROOTSPEC, dpath); if (l == -1 || l >= (int)sizeof(path)) { errno = ENAMETOOLONG; @@ -567,13 +567,13 @@ } if ((stat(path, &st) != 0) && (errno == ENOENT) && - (cdir->cf_ddat->cd_repo != NULL)) { + (cdir->cf_repo != NULL)) { fp = fopen(path, "w"); if (fp == NULL) { cvs_log(LP_ERRNO, "failed to open %s", path); return (-1); } - fprintf(fp, "%s\n", cdir->cf_ddat->cd_repo); + fprintf(fp, "%s\n", cdir->cf_repo); (void)fclose(fp); }