[comp.bugs.4bsd] arff doesn't recognize protected files +FIX

jeff@voder.UUCP (Jeff Gilliam) (11/21/86)

Index: 	etc/arff.c 4.3BSD

Description:
	arff ignores "protected" RT-11 files.
Repeat-By:
	Get your local DEC account rep to give you some floppies that
	have protected files on them.  Type 'arff t' and try to figure
	out why those file don't appear.
Fix:

Index: arff.c
diff -c -r1.1 -r1.2
*** /tmp/,RCSt1019194	Fri Nov 21 02:56:47 1986
--- /tmp/,RCSt2019194	Fri Nov 21 02:56:49 1986
***************
*** 46,51 ****
--- 46,52 ----
  #define RT_TEMP		1
  #define RT_NULL		2
  #define RT_FILE		4
+ #define RT_PROT		0200|RT_FILE
  #define RT_ESEG		8
  
  #define RT_BLOCK	512	/* block size */
***************
*** 258,263 ****
--- 259,265 ----
  		/* fall thru...*/
  
  	case RT_FILE:
+ 	case RT_PROT:
  		if (!flag(v)) {
  			sunrad50(name, de->rt_name);
  			printf("%s\n", name);
***************
*** 308,313 ****
--- 310,316 ----
  
  			case RT_TEMP:
  			case RT_FILE:
+ 			case RT_PROT:
  				sunrad50(name,rt(de)->rt_name);
  				(void) rtx(name);
  
***************
*** 458,463 ****
--- 461,467 ----
  			switch(rt(de)->rt_stat) {
  
  			case RT_FILE:
+ 			case RT_PROT:
  			case RT_TEMP:
  				if(samename(rname,rt(de)->rt_name)) {
  					result.count = rt(de)->rt_len * 512;
-- 

Jeff Gilliam	{ucbvax,pyramid,nsc}!voder!jeff