=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/getlog.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/cvs/getlog.c 2004/12/06 03:13:52 1.8 --- src/usr.bin/cvs/getlog.c 2004/12/06 21:03:12 1.9 *************** *** 1,4 **** ! /* $OpenBSD: getlog.c,v 1.8 2004/12/06 03:13:52 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: getlog.c,v 1.9 2004/12/06 21:03:12 deraadt Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 96,103 **** if (argc == 0) { cvs_files = cvs_file_get(".", flags); ! } ! else { cvs_files = cvs_file_getspec(argv, argc, flags); } if (cvs_files == NULL) --- 96,102 ---- if (argc == 0) { cvs_files = cvs_file_get(".", flags); ! } else { cvs_files = cvs_file_getspec(argv, argc, flags); } if (cvs_files == NULL) *************** *** 140,147 **** root = cf->cf_parent->cf_ddat->cd_root; cvs_sendreq(root, CVS_REQ_QUESTIONABLE, CVS_FILE_NAME(cf)); ! } ! else { root = cf->cf_ddat->cd_root; if ((cf->cf_parent == NULL) || (root != cf->cf_parent->cf_ddat->cd_root)) { --- 139,145 ---- root = cf->cf_parent->cf_ddat->cd_root; cvs_sendreq(root, CVS_REQ_QUESTIONABLE, CVS_FILE_NAME(cf)); ! } else { root = cf->cf_ddat->cd_root; if ((cf->cf_parent == NULL) || (root != cf->cf_parent->cf_ddat->cd_root)) { *************** *** 152,166 **** } return (0); ! } ! else root = cf->cf_parent->cf_ddat->cd_root; rf = NULL; if (cf->cf_parent != NULL) { repo = cf->cf_parent->cf_ddat->cd_repo; ! } ! else { repo = NULL; } --- 150,162 ---- } return (0); ! } else root = cf->cf_parent->cf_ddat->cd_root; rf = NULL; if (cf->cf_parent != NULL) { repo = cf->cf_parent->cf_ddat->cd_repo; ! } else { repo = NULL; }