From 7938e528a387fb68c511404d67ad15977bb479ef Mon Sep 17 00:00:00 2001 From: joris Date: Sun, 4 Jun 2006 09:52:56 +0000 Subject: sprinkle -n voodoo over the add, commit and import commands. --- usr.bin/cvs/commit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 4a4bb408428..b4b33f4ca34 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.68 2006/06/01 20:00:52 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.69 2006/06/04 09:52:56 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -159,6 +159,9 @@ cvs_commit_local(struct cvs_file *cf) cvs_log(LP_TRACE, "cvs_commit_local(%s)", cf->file_path); cvs_file_classify(cf, NULL, 0); + if (cvs_noexec == 1) + return; + if (cf->file_type != CVS_FILE) fatal("cvs_commit_local: '%s' is not a file", cf->file_path); -- cgit v1.2.3-59-g8ed1b