=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/util.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/cvs/util.c 2005/07/23 10:49:35 1.38 --- src/usr.bin/cvs/util.c 2005/07/23 10:59:47 1.39 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.38 2005/07/23 10:49:35 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.39 2005/07/23 10:59:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 666,675 **** /* * All went ok, switch to the newly created directory. */ ! if (chdir(d) == -1) { ! cvs_log(LP_ERRNO, "failed to change dir to `%s'", d); goto done; - } d = strtok(NULL, "/"); } --- 666,673 ---- /* * All went ok, switch to the newly created directory. */ ! if (cvs_chdir(d) == -1) goto done; d = strtok(NULL, "/"); }