summaryrefslogtreecommitdiff
path: root/usr/src/cmd/svc/configd/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/svc/configd/backend.c')
-rw-r--r--usr/src/cmd/svc/configd/backend.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/cmd/svc/configd/backend.c b/usr/src/cmd/svc/configd/backend.c
index 50bb3052c5..3f39f068f8 100644
--- a/usr/src/cmd/svc/configd/backend.c
+++ b/usr/src/cmd/svc/configd/backend.c
@@ -18,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1891,6 +1892,9 @@ backend_init(const char *db_file, const char *npdb_file, int have_np)
}
if (db_file == NULL)
db_file = REPOSITORY_DB;
+ if (strcmp(db_file, REPOSITORY_DB) != 0) {
+ is_main_repository = 0;
+ }
r = backend_create(BACKEND_TYPE_NORMAL, db_file, &be);
switch (r) {