From 687293e120279f92dd01b4ecf37211f75188dc07 Mon Sep 17 00:00:00 2001 From: Antonello Cruz Date: Thu, 2 Jul 2009 15:41:03 -0700 Subject: 6855845 Allow Property Modification in SMF profiles 6855772 svccfg dumps core during installation --- usr/src/cmd/svc/svccfg/svccfg_engine.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr/src/cmd/svc/svccfg/svccfg_engine.c') diff --git a/usr/src/cmd/svc/svccfg/svccfg_engine.c b/usr/src/cmd/svc/svccfg/svccfg_engine.c index 2a907fd7a8..660582fe07 100644 --- a/usr/src/cmd/svc/svccfg/svccfg_engine.c +++ b/usr/src/cmd/svc/svccfg/svccfg_engine.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -637,7 +637,7 @@ engine_import(uu_list_t *args) } int -engine_apply(const char *file) +engine_apply(const char *file, int apply_changes) { int ret; bundle_t *b; @@ -657,6 +657,11 @@ engine_apply(const char *file) return (-1); } + if (!apply_changes) { /* we don't want to apply, just test */ + internal_bundle_free(b); + return (0); + } + if (lscf_bundle_apply(b, file) != 0) { internal_bundle_free(b); return (-1); -- cgit v1.2.3