=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/add.c,v retrieving revision 1.113 retrieving revision 1.114 diff -c -r1.113 -r1.114 *** src/usr.bin/cvs/add.c 2016/10/13 20:51:25 1.113 --- src/usr.bin/cvs/add.c 2017/06/01 08:08:24 1.114 *************** *** 1,4 **** ! /* $OpenBSD: add.c,v 1.113 2016/10/13 20:51:25 fcambus Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2005, 2006 Xavier Santolaria --- 1,4 ---- ! /* $OpenBSD: add.c,v 1.114 2017/06/01 08:08:24 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2005, 2006 Xavier Santolaria *************** *** 91,97 **** cr.enterdir = NULL; cr.leavedir = NULL; ! if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { cvs_client_connect_to_server(); cr.fileproc = cvs_add_remote; flags = 0; --- 91,97 ---- cr.enterdir = NULL; cr.leavedir = NULL; ! if (cvsroot_is_remote()) { cvs_client_connect_to_server(); cr.fileproc = cvs_add_remote; flags = 0; *************** *** 118,124 **** (added_files == 1) ? "this file" : "these files"); } ! if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { cvs_client_senddir("."); cvs_client_send_files(argv, argc); cvs_client_send_request("add"); --- 118,124 ---- (added_files == 1) ? "this file" : "these files"); } ! if (cvsroot_is_remote()) { cvs_client_senddir("."); cvs_client_send_files(argv, argc); cvs_client_send_request("add"); *************** *** 364,370 **** } } ! if (added == 1 && current_cvsroot->cr_method == CVS_METHOD_LOCAL) { (void)xsnprintf(msg, sizeof(msg), "Directory %s added to the repository", cf->file_rpath); --- 364,370 ---- } } ! if (added == 1 && cvsroot_is_local()) { (void)xsnprintf(msg, sizeof(msg), "Directory %s added to the repository", cf->file_rpath);