5 * Revision 1.2 1996/04/24 17:27:03 mclareni
6 * Extend the include file cleanup to dzebra, rz and tq, and also add
7 * dependencies in some cases.
9 * Revision 1.1.1.1 1996/03/06 10:47:25 mclareni
13 #include "zebra/pilot.h"
14 SUBROUTINE RZMODS(CHROUT,IFLAG)
16 ************************************************************************
18 * Check if directory can be modified
19 * Enter directory in the list of modified directories
21 * CHROUT Name of the calling routine
23 * IFLAG Status flag =0 if OK 1 otherwise
25 * Called by RZCOPY,RZDELK,RZDELT,RZMDIR,RZOUT,RZPASS,RZPURG,RZQUOT,RZVOUT
27 * Author : R.Brun DD/US/PD
31 ************************************************************************
32 #include "zebra/zunit.inc"
33 #include "zebra/rzcl.inc"
34 #include "zebra/rzdir.inc"
38 *-----------------------------------------------------------------------
40 #include "zebra/q_jbit.inc"
41 #include "zebra/q_jbyt.inc"
46 IF(JBIT(IQ(KQSP+LCDIR),1).NE.0)GO TO 90
48 IF(LFREE.EQ.0)GO TO 90
49 IF(IQ(KQSP+LFREE+1).EQ.0)GO TO 90
54 CALL SBIT1(IQ(KQSP+LCDIR),2)
55 CALL SBIT1(IQ(KQSP+LTOP),2)
60 * Get current directory name
62 CALL RZPAFF(CHPAT,NLPAT,CHPATH)
63 LPATH = LENOCC(CHPATH)
64 IF(JBYT(IQ(KQSP+LTOP),15,3)-3.GE.-2) THEN
65 WRITE(IQLOG,1000)CHROUT
66 WRITE(IQLOG,*) '(',CHPATH(1:LPATH),')'
70 1000 FORMAT(1X,A,'. No authorisation to write in that directory')