/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#include <stdio.h>
#include <memory.h>
#include <string.h>
#include <limits.h>
#include <dirent.h>
#include <pkgstrct.h>
#include <locale.h>
#include <libintl.h>
#include <unistd.h>
#include <stdlib.h>
#include "pkglib.h"
#include "install.h"
#include "libadm.h"
#include "libinst.h"
int
{
char *path;
if (envflag)
if (!device)
}
if (envflag) /* -e option */
if (!device) {
}
}
}
if (envflag) {
}
}
if (lflag) {
return (0);
} else if (Lflag)
errflg = 0;
if (device) {
return (0);
return (-1);
}
/*
* If the package file attributes are to be sync'd up with
* the pkgmap, we fix the attributes here.
*/
if (fflag) {
a_err = 0;
/* Clear dangerous bits. */
/*
* Make sure the file is readable by the world and
* writeable by root.
*/
/* Set the safe attributes. */
errflg++;
logerr(getErrbufAddr());
}
return (-1);
}
}
}
/* Report invalid modtimes by passing cverify a -1 */
if (c_err) {
logerr(getErrbufAddr());
return (-1);
}
} else {
a_err = 0;
/* validate attributes */
errflg++;
logerr(getErrbufAddr());
}
return (-1);
}
}
/* validate contents */
/* Report invalid modtimes by passing cverify a -1 */
errflg++;
if (!a_err)
logerr(getErrbufAddr());
}
return (-1);
}
}
/* must do verbose here since ept->path will change */
errflg++;
}
}
if (vflag)
return (errflg);
}
static int
{
int dirfound;
int errflg;
int len;
int n;
void *pos;
if (!maptyp)
return (-1);
}
errflg = 0;
continue;
if (!maptyp) {
dirfound = 0;
if (n < 0) {
"Unknown");
exit(99);
}
break;
0) {
dirfound++;
break;
}
}
if (dirfound)
continue;
} else {
}
continue;
}
}
if (fflag) {
errflg++;
}
} else {
errflg++;
}
}
return (errflg);
}
static char *
{
} else {
}
return (path);
}
return (path);
}
}
return (NULL);
}