Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 24,33 ****
--- 24,34 ----
* Use is subject to license terms.
*/
/*
* Copyright 2012 DEY Storage Systems, Inc. All rights reserved.
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
*/
#define _STRUCTURED_PROC 1
#include <stdlib.h>
*** 1355,1369 ****
free(cp);
}
{
! prpriv_t *ppriv;
const priv_impl_info_t *pinfo;
size_t pprivsz, pinfosz;
! if ((ppriv = proc_get_priv(P->pid)) == NULL)
goto err;
pprivsz = PRIV_PRPRIV_SIZE(ppriv);
if (write_note(fd, NT_PRPRIV, ppriv, pprivsz, &doff) != 0) {
free(ppriv);
--- 1356,1370 ----
free(cp);
}
{
! prpriv_t *ppriv = NULL;
const priv_impl_info_t *pinfo;
size_t pprivsz, pinfosz;
! if (Ppriv(P, &ppriv) == -1)
goto err;
pprivsz = PRIV_PRPRIV_SIZE(ppriv);
if (write_note(fd, NT_PRPRIV, ppriv, pprivsz, &doff) != 0) {
free(ppriv);