diff options
author | 2005-05-24 21:57:33 +0000 | |
---|---|---|
committer | 2005-05-24 21:57:33 +0000 | |
commit | 58e3d159616c13dece7437aee7a427fcb8b6b88c (patch) | |
tree | 832a22dbd73387bbffbe2774a6a860ed4bafa15d /usr.bin/cvs/file.c | |
parent | ath_hal_rx_monitor should be used for link state monitoring instead of (diff) | |
download | wireguard-openbsd-58e3d159616c13dece7437aee7a427fcb8b6b88c.tar.xz wireguard-openbsd-58e3d159616c13dece7437aee7a427fcb8b6b88c.zip |
don't fail on mkdir(2) when errno is EEXIST in cvs_file_create().
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index f109e3fb599..6aec3167b38 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.78 2005/05/24 20:04:43 joris Exp $ */ +/* $OpenBSD: file.c,v 1.79 2005/05/24 21:57:33 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -269,7 +269,7 @@ cvs_file_create(CVSFILE *parent, const char *path, u_int type, mode_t mode) return (NULL); } - if ((mkdir(path, mode) == -1) || + if (((mkdir(path, mode) == -1) && (errno != EEXIST)) || (cvs_mkadmin(path, cfp->cf_root->cr_str, cfp->cf_repo) < 0)) { cvs_file_free(cfp); return (NULL); |