static char *rcsid
= "$Header: /f/osi/quipu/dish/RCS/delete.c,v 7.1 91/02/22 09:40:24 mrose Interim $";
* $Header: /f/osi/quipu/dish/RCS/delete.c,v 7.1 91/02/22 09:40:24 mrose Interim $
* Revision 7.1 91/02/22 09:40:24 mrose
* Revision 7.0 89/11/23 22:19:59 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
#include "quipu/remove.h"
#include "quipu/DAS_pre_defs.h"
#define OPT (!frompipe || rps -> ps_byteno == 0 ? opt : rps)
#define RPS (!frompipe || opt -> ps_byteno == 0 ? rps : opt)
struct ds_removeentry_arg remove_arg
;
if ((argc
= service_control (OPT
, argc
, argv
, &remove_arg
.rma_common
)) == -1)
if (move (argv
[1]) == OK
)
ps_printf (OPT
,"Unknown option %s\n",argv
[1]);
remove_arg
.rma_object
= dn
;
/* Strong authentication */
if (remove_arg
.rma_common
.ca_security
!= (struct security_parms
*) 0)
struct signature
*sign_operation();
remove_arg
.rma_common
.ca_sig
=
sign_operation((caddr_t
)&remove_arg
,
_ZRemoveEntryArgumentDataDAS
, &_ZDAS_mod
);
while (ds_removeentry (&remove_arg
, &error
) != DS_OK
) {
if (dish_error (OPT
, &error
) == 0)
remove_arg
.rma_object
= error
.ERR_REFERRAL
.DSE_ref_candidates
->cr_name
;
ps_print (RPS
, "Removed ");
dn_print (RPS
, dn
, EDBOUT
);
for (dnptr
= dn
; dnptr
->dn_parent
!= NULLDN
; dnptr
= dnptr
->dn_parent
)
trail
->dn_parent
= NULLDN
;