diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-22 14:31:45 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-22 14:31:45 +0000 |
commit | af6a6829a6427182ad5cd5b6788a454e54625592 (patch) | |
tree | 880325d5d9b125e1bd9350756b000e31c1285b9f /usr.bin/cvs/util.c | |
parent | 02fccedca2601913a031fa41a6ba13d4777677f9 (diff) |
cvs_chdir() cannot fail anymore;
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 863564ca274..1513008e468 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.60 2005/12/22 14:16:18 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.61 2005/12/22 14:31:44 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -697,11 +697,8 @@ cvs_create_dir(const char *path, int create_adm, char *root, char *repo) entf = NULL; } - /* - * All went ok, switch to the newly created directory. - */ - if (cvs_chdir(d) == -1) - goto done; + /* All went ok, switch to the newly created directory. */ + cvs_chdir(d); d = strtok(NULL, "/"); } |