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/release.c | |
parent | 02fccedca2601913a031fa41a6ba13d4777677f9 (diff) |
cvs_chdir() cannot fail anymore;
Diffstat (limited to 'usr.bin/cvs/release.c')
-rw-r--r-- | usr.bin/cvs/release.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/cvs/release.c b/usr.bin/cvs/release.c index bce2e6012fc..73418748c1b 100644 --- a/usr.bin/cvs/release.c +++ b/usr.bin/cvs/release.c @@ -1,4 +1,4 @@ -/* $OpenBSD: release.c,v 1.23 2005/10/07 21:47:32 reyk Exp $ */ +/* $OpenBSD: release.c,v 1.24 2005/12/22 14:31:44 xsa Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -161,8 +161,7 @@ cvs_release_dir(CVSFILE *cf, void *arg) return (0); /* chdir before running the `cvs update' command */ - if (cvs_chdir(dpath) == -1) - return (CVS_EX_FILE); + cvs_chdir(dpath); /* test if dir has CVS/ directory */ if (stat(CVS_PATH_CVSDIR, &st) == -1) { @@ -200,8 +199,7 @@ cvs_release_dir(CVSFILE *cf, void *arg) cvs_log(LP_ERR, "unable to release `%s'", dpath); /* change back to original working dir */ - if (cvs_chdir(wdir) == -1) - return (CVS_EX_FILE); + cvs_chdir(wdir); } printf("You have [%d] altered file%s in this repository.\n", @@ -220,15 +218,13 @@ cvs_release_dir(CVSFILE *cf, void *arg) "** `%s' aborted by user choice.\n", cvs_command); /* change back to original working dir */ - if (cvs_chdir(wdir) == -1) - return (CVS_EX_FILE); + cvs_chdir(wdir); return (-1); } /* change back to original working dir */ - if (cvs_chdir(wdir) == -1) - return (CVS_EX_FILE); + cvs_chdir(wdir); if (dflag == 1) { if (cvs_rmdir(dpath) != 0) |