=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/resp.c,v retrieving revision 1.27 retrieving revision 1.28 diff -c -r1.27 -r1.28 *** src/usr.bin/cvs/Attic/resp.c 2005/04/15 13:14:00 1.27 --- src/usr.bin/cvs/Attic/resp.c 2005/04/18 21:02:50 1.28 *************** *** 1,4 **** ! /* $OpenBSD: resp.c,v 1.27 2005/04/15 13:14:00 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: resp.c,v 1.28 2005/04/18 21:02:50 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 389,401 **** cf = cvs_file_create(sdir, line, DT_DIR, 0755); if (cf == NULL) return (-1); ! cf->cf_ddat->cd_repo = strdup(line); ! if (cf->cf_ddat->cd_repo == NULL) { cvs_log(LP_ERRNO, "failed to duplicate `%s'", line); cvs_file_free(cf); return (-1); } ! cf->cf_ddat->cd_root = root; root->cr_ref++; if (cvs_file_attach(sdir, cf) < 0) { --- 389,401 ---- cf = cvs_file_create(sdir, line, DT_DIR, 0755); if (cf == NULL) return (-1); ! cf->cf_repo = strdup(line); ! if (cf->cf_repo == NULL) { cvs_log(LP_ERRNO, "failed to duplicate `%s'", line); cvs_file_free(cf); return (-1); } ! cf->cf_root = root; root->cr_ref++; if (cvs_file_attach(sdir, cf) < 0) { *************** *** 418,426 **** } if (type == CVS_RESP_CLRSTICKY) ! cf->cf_ddat->cd_flags &= ~CVS_DIRF_STICKY; else if (type == CVS_RESP_SETSTICKY) ! cf->cf_ddat->cd_flags |= CVS_DIRF_STICKY; return (0); } --- 418,426 ---- } if (type == CVS_RESP_CLRSTICKY) ! cf->cf_flags &= ~CVS_DIRF_STICKY; else if (type == CVS_RESP_SETSTICKY) ! cf->cf_flags |= CVS_DIRF_STICKY; return (0); }