=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/getlog.c,v retrieving revision 1.74 retrieving revision 1.75 diff -c -r1.74 -r1.75 *** src/usr.bin/cvs/getlog.c 2007/07/16 12:16:01 1.74 --- src/usr.bin/cvs/getlog.c 2007/07/17 19:56:08 1.75 *************** *** 1,4 **** ! /* $OpenBSD: getlog.c,v 1.74 2007/07/16 12:16:01 xsa Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria * Copyright (c) 2006 Joris Vink --- 1,4 ---- ! /* $OpenBSD: getlog.c,v 1.75 2007/07/17 19:56:08 xsa Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria * Copyright (c) 2006 Joris Vink *************** *** 136,142 **** if (runflags & L_LOGINS) cvs_client_send_request("Argument -w%s", wlist); } else { ! if (cvs_command[0] == 'r' && chdir(current_cvsroot->cr_dir) == -1) fatal("cvs_server_log: %s", strerror(errno)); --- 136,142 ---- if (runflags & L_LOGINS) cvs_client_send_request("Argument -w%s", wlist); } else { ! if (cvs_cmdop == CVS_OP_RLOG && chdir(current_cvsroot->cr_dir) == -1) fatal("cvs_server_log: %s", strerror(errno)); *************** *** 153,162 **** if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { cvs_client_send_files(argv, argc); cvs_client_senddir("."); ! if (cvs_command[0] == 'r') ! cvs_client_send_request("rlog"); ! else ! cvs_client_send_request("log"); cvs_client_get_responses(); } --- 153,162 ---- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { cvs_client_send_files(argv, argc); cvs_client_senddir("."); ! ! cvs_client_send_request((cvs_cmdop == CVS_OP_RLOG) ? ! "rlog" : "log"); ! cvs_client_get_responses(); }