=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/release.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/cvs/release.c 2005/07/22 16:27:29 1.16 --- src/usr.bin/cvs/release.c 2005/07/23 10:59:47 1.17 *************** *** 1,4 **** ! /* $OpenBSD: release.c,v 1.16 2005/07/22 16:27:29 joris Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: release.c,v 1.17 2005/07/23 10:59:47 xsa Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria * All rights reserved. *************** *** 176,186 **** cvs_log(LP_ERRNO, "cannot get current dir"); /* change dir before running the `cvs update' command */ ! if (chdir(dpath) == -1) { ! cvs_log(LP_ERRNO, "cannot change to dir `%s'", ! dpath); return (CVS_EX_FILE); - } /* construct `cvs update' command */ l = snprintf(updcmd, sizeof(updcmd), "%s %s %s update", --- 176,183 ---- cvs_log(LP_ERRNO, "cannot get current dir"); /* change dir before running the `cvs update' command */ ! if (cvs_chdir(dpath) == -1) return (CVS_EX_FILE); /* construct `cvs update' command */ l = snprintf(updcmd, sizeof(updcmd), "%s %s %s update", *************** *** 222,232 **** } /* change back to original working dir */ ! if (chdir(wdir) == -1) { ! cvs_log(LP_ERRNO, "cannot change to original " ! "working dir `%s'", wdir); return (CVS_EX_FILE); - } if (dflag == 1) { if (!cvs_noexec && cvs_remove_dir(dpath) != 0) { --- 219,226 ---- } /* change back to original working dir */ ! if (cvs_chdir(wdir) == -1) return (CVS_EX_FILE); if (dflag == 1) { if (!cvs_noexec && cvs_remove_dir(dpath) != 0) {