5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * CDDL HEADER START
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * The contents of this file are subject to the terms of the
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * Common Development and Distribution License (the "License").
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * You may not use this file except in compliance with the License.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * or http://www.opensolaris.org/os/licensing.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * See the License for the specific language governing permissions
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * and limitations under the License.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * When distributing Covered Code, include this CDDL HEADER in each
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * If applicable, add the following below this CDDL HEADER, with the
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * fields enclosed by brackets "[]" replaced with your own identifying
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * information: Portions Copyright [yyyy] [name of copyright owner]
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * CDDL HEADER END
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * Use is subject to license terms.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland/* All Rights Reserved */
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland max_eptnum = 64; /* starting size of array */
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland extlist = malloc(max_eptnum * sizeof (struct cfextra *));
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland /* strip trailing new line */
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * This strips the install root from the path using
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * a questionable algorithm. This should go away as
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * we define more precisely the command line syntax
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland * with our '-R' option. - JST
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland logerr(gettext("ERROR: no pathname was provided"));
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland "WARNING: relative pathname <%s> ignored"), path);
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland (void) eval_path(&(new->server_path), &(new->client_path),
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland /* array size grows exponentially */
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland (unsigned)eptnum, sizeof (struct cfextra *), cfentcmp);