dofinal.c revision 62224350e5355e6834f7deb9d8a7d062a50cb7c2
/*
* 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 <errno.h>
#include <string.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
#include <pkgstrct.h>
#include <locale.h>
#include <libintl.h>
#include <pkglib.h>
#include "install.h"
#include "libinst.h"
#include "libadm.h"
extern char *pkginst;
#define ERR_WRITE "write of intermediate contents file failed"
/*ARGSUSED*/
int
{
indx = 0;
indx++;
dbchg = 0;
quit(99);
if (n < 0) {
quit(99);
}
&dbchg);
/* Restore original server-relative path, if needed */
}
}
return (dbchg);
}
static char *
int *dbchg)
{
int fs_entry;
char *tp;
/*
* We already have it in the database we don't want
* to modify it.
*/
return (NULL);
}
/*
* Now scan each package instance holding this file or
* directory and see if it matches the package we are
* updating here.
*/
while (pinfo) {
break;
}
/*
* If pinfo == NULL at this point, then this file or
* directory isn't part of the package of interest.
* So the code below executes only on files in the package
* of interest.
*/
return (NULL);
*dbchg = 1;
quit(99);
}
(void) vfpSetModified(vfpo);
/* add "-<path>" to the file */
}
return (NULL);
*dbchg = 1;
/* tp is the server-relative path */
/* save_path is the cmd line path */
/* entry has the server-relative path */
/*
* The next if statement figures out how
* the contents file entry should be
* annotated.
*
* Don't install or verify objects for
* remote, read-only filesystems. We
* need only verify their presence and
* flag them appropriately from some
* server. Otherwise, ok to do final
* check.
*/
/*
* Mark it shared whether it's present
* or not. life's too funny for me
* to explain.
*/
/*
* restore for now. This may
* chg soon.
*/
} else {
/*
* If the object is accessible, check
* the new entry for existence and
* attributes. If there's a problem,
* mark it NOT_FND; otherwise,
* ENTRY_OK.
*/
if (is_mounted_n(fs_entry)) {
int n;
if (n != 0) {
}
}
/*
* It's not remote, read-only but it
* may look that way to the client.
* If it does, overwrite the above
* result - mark it shared.
*/
if (is_served_n(fs_entry))
/* restore original path */
/* and clear save_path */
}
}
/* Output entry to contents file. */
quit(99);
}
return (save_path);
}