zoneadm.c (d9e728a2c2e62adeef072d782e4c8a7b34e7e8e8) zoneadm.c (e767a340776ab621d2b82ee83e1755c45fa979c8)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 3026 unchanged lines hidden (view full) ---

3035 * zonecfg_get_zonepath() gets its data from the XML repository.
3036 * Verify this against the index file, which is checked first by
3037 * zone_get_zonepath(). If they don't match, bail out.
3038 */
3039 if ((err = zone_get_zonepath(target_zone, checkpath,
3040 sizeof (checkpath))) != Z_OK) {
3041 errno = err;
3042 zperror2(target_zone, gettext("could not get zone path"));
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 3026 unchanged lines hidden (view full) ---

3035 * zonecfg_get_zonepath() gets its data from the XML repository.
3036 * Verify this against the index file, which is checked first by
3037 * zone_get_zonepath(). If they don't match, bail out.
3038 */
3039 if ((err = zone_get_zonepath(target_zone, checkpath,
3040 sizeof (checkpath))) != Z_OK) {
3041 errno = err;
3042 zperror2(target_zone, gettext("could not get zone path"));
3043 zonecfg_fini_handle(handle);
3043 return (Z_ERR);
3044 }
3045 if (strcmp(zonepath, checkpath) != 0) {
3046 /*
3047 * TRANSLATION_NOTE
3048 * XML and zonepath are literals that should not be translated.
3049 */
3050 (void) fprintf(stderr, gettext("The XML repository has "
3051 "zonepath '%s',\nbut the index file has zonepath '%s'.\n"
3052 "These must match, so fix the incorrect entry.\n"),
3053 zonepath, checkpath);
3044 return (Z_ERR);
3045 }
3046 if (strcmp(zonepath, checkpath) != 0) {
3047 /*
3048 * TRANSLATION_NOTE
3049 * XML and zonepath are literals that should not be translated.
3050 */
3051 (void) fprintf(stderr, gettext("The XML repository has "
3052 "zonepath '%s',\nbut the index file has zonepath '%s'.\n"
3053 "These must match, so fix the incorrect entry.\n"),
3054 zonepath, checkpath);
3055 zonecfg_fini_handle(handle);
3054 return (Z_ERR);
3055 }
3056 if (validate_zonepath(zonepath, cmd_num) != Z_OK) {
3057 (void) fprintf(stderr, gettext("could not verify zonepath %s "
3058 "because of the above errors.\n"), zonepath);
3059 return_code = Z_ERR;
3060 }
3061

--- 2515 unchanged lines hidden ---
3056 return (Z_ERR);
3057 }
3058 if (validate_zonepath(zonepath, cmd_num) != Z_OK) {
3059 (void) fprintf(stderr, gettext("could not verify zonepath %s "
3060 "because of the above errors.\n"), zonepath);
3061 return_code = Z_ERR;
3062 }
3063

--- 2515 unchanged lines hidden ---