diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-07-27 10:38:02 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-07-27 10:38:02 +0000 |
commit | 8dc33cb24f30ce59b0ad0bd9e14195583712d210 (patch) | |
tree | 4a1b4189ffeed1e140f7c6add974832329552899 /usr.bin/cvs/util.c | |
parent | 02b462d7a2b43e14b2bd573d43195212d76bfc01 (diff) |
make cvs_rmdir() handle global -n and -t options; ok joris@.
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 3d8948a6b1a..0370aa70644 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.45 2005/07/27 10:36:14 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.46 2005/07/27 10:38:01 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -555,6 +555,11 @@ cvs_rmdir(const char *path) struct dirent *ent; char fpath[MAXPATHLEN]; + cvs_log(LP_TRACE, "cvs_rmdir(%s)", path); + + if (cvs_noexec == 1) + return (0); + if ((dirp = opendir(path)) == NULL) { cvs_log(LP_ERRNO, "failed to open '%s'", path); return (-1); |