diff -r -C 2 -N e2fsprogs-1.06/MCONFIG.in e2fsprogs-1.06-tcfs/MCONFIG.in
*** e2fsprogs-1.06/MCONFIG.in	Tue Sep 10 05:12:42 1996
--- e2fsprogs-1.06-tcfs/MCONFIG.in	Tue Feb 18 11:02:46 1997
***************
*** 26,31 ****
  DEFS = @DEFS@
  CFLAGS = @CFLAGS@
! ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
! 	-I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE) 
  LDFLAGS = @LDFLAGS@
  ALL_LDFLAGS = $(LDFLAGS)
--- 26,36 ----
  DEFS = @DEFS@
  CFLAGS = @CFLAGS@
! 
! TCFS_FLAGS = -DHAVE_TCFS
! TCFS_INCLUDE = -I$(top_srcdir)
! 
! ALL_CFLAGS = $(TCFS_FLAGS) $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
! 	-I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)\
! 	$(TCFS_INCLUDE)
  LDFLAGS = @LDFLAGS@
  ALL_LDFLAGS = $(LDFLAGS)
diff -r -C 2 -N e2fsprogs-1.06/lib/e2p/pf.c e2fsprogs-1.06-tcfs/lib/e2p/pf.c
*** e2fsprogs-1.06/lib/e2p/pf.c	Sun Sep 22 22:32:52 1996
--- e2fsprogs-1.06-tcfs/lib/e2p/pf.c	Tue Feb 18 11:02:46 1997
***************
*** 19,22 ****
--- 19,26 ----
  #include "e2p.h"
  
+ #ifdef HAVE_TCFS
+ #include <linux/tcfs.h>
+ #endif
+ 
  static const unsigned long flags_array[] = {
  	EXT2_SECRM_FL,
***************
*** 36,39 ****
--- 40,46 ----
  	EXT2_NOATIME_FL,
  #endif
+ #ifdef  TCFS_SECURE_FL
+         TCFS_SECURE_FL,
+ #endif      
  	0};
  
***************
*** 55,58 ****
--- 62,68 ----
  	"A",
  #endif
+ #ifdef  TCFS_SECURE_FL
+         "X",
+ #endif      
  	NULL};
  
***************
*** 73,76 ****
--- 83,89 ----
  #ifdef	EXT2_NOATIME_FL
  	"No_Atime, ",
+ #endif
+ #ifdef  TCFS_SECURE_FL
+         "Secure, ",
  #endif
  	NULL};
diff -r -C 2 -N e2fsprogs-1.06/misc/chattr.1.in e2fsprogs-1.06-tcfs/misc/chattr.1.in
*** e2fsprogs-1.06/misc/chattr.1.in	Mon Oct  7 21:10:14 1996
--- e2fsprogs-1.06-tcfs/misc/chattr.1.in	Tue Feb 18 13:56:22 1997
***************
*** 20,24 ****
  changes the files attributes on an second extended file system.
  .PP
! The format of a symbolic mode is +-=[Sacdisu].
  .PP
  The operator `+' causes the selected attributes to be added to the
--- 20,24 ----
  changes the files attributes on an second extended file system.
  .PP
! The format of a symbolic mode is +-=[SacdisuX].
  .PP
  The operator `+' causes the selected attributes to be added to the
***************
*** 28,32 ****
  The letters `Sacdisu' select the new attributes for the files: synchronous
  updates (S), append only (a), compressed (c), immutable (i), no dump (d),
! secure deletion (s), and undeletable (u).
  .SH OPTIONS
  .TP
--- 28,32 ----
  The letters `Sacdisu' select the new attributes for the files: synchronous
  updates (S), append only (a), compressed (c), immutable (i), no dump (d),
! secure deletion (s), undeletable (u), and secure (X).
  .SH OPTIONS
  .TP
***************
*** 54,57 ****
--- 54,63 ----
  to the file. Only the superuser can set or clear this attribute.
  
+ A file with the 'X' is a secure file. Only the owner can access it, stated
+ first that
+ .B TCFS
+ knows his key (see
+ .BR tcfslogin (1)).
+ 
  When a file with the `s' attribute set is deleted, its blocks are zeroed and
  written back to the disk.
***************
*** 71,74 ****
--- 77,84 ----
  has been written by Remy Card <card@masi.ibp.fr>, the developer and maintainer
  of the ext2 fs.
+ 
+ It has been patched for
+ .B TCFS
+ by Aniello Del Sorbo <anidel@mikonos.dia.unisa.it>.
  .SH BUGS AND LIMITATIONS
  As of ext2 fs 0.5a, the `c' and `u' attribute are not honoured by the kernel
***************
*** 82,84 ****
  /pub/linux/packages/ext2fs.
  .SH SEE ALSO
! .BR lsattr (1)
--- 92,97 ----
  /pub/linux/packages/ext2fs.
  .SH SEE ALSO
! .BR lsattr (1),
! .BR tcfslogin (1),
! .BR tcfslogout (1),
! .BR tcfsgenkey (1)
diff -r -C 2 -N e2fsprogs-1.06/misc/chattr.c e2fsprogs-1.06-tcfs/misc/chattr.c
*** e2fsprogs-1.06/misc/chattr.c	Sun Sep 22 22:18:37 1996
--- e2fsprogs-1.06-tcfs/misc/chattr.c	Tue Feb 18 11:02:46 1997
***************
*** 38,41 ****
--- 38,45 ----
  #include "../version.h"
  
+ #ifdef HAVE_TCFS
+ #include <linux/tcfs.h>
+ #endif
+ 
  const char * program_name = "chattr";
  
***************
*** 60,64 ****
  }
  
! #define usage() fatal_error ("usage: %s [-RV] [-+=acdisSu] [-v version] files...\n", \
  			     1)
  
--- 64,68 ----
  }
  
! #define usage() fatal_error ("usage: %s [-RV] [-+=acCdisSu] [-v version] files...\n", \
  			     1)
  
***************
*** 100,103 ****
--- 104,113 ----
  				rem = 1;
  				break;
+ #ifdef  HAVE_TCFS
+                         case 'X':
+                                  rf |= TCFS_SECURE_FL;
+                                  rem = 1;
+                                  break;
+ #endif
  #ifdef	EXT2_NODUMP_FL
  			case 'd':
***************
*** 160,163 ****
--- 170,178 ----
  				af |= EXT2_COMPR_FL;
  				break;
+ #ifdef HAVE_TCFS
+                         case 'X':
+                                 af |= TCFS_SECURE_FL;
+                                 break;
+ #endif                               
  #ifdef	EXT2_NODUMP_FL
  			case 'd':
***************
*** 201,204 ****
--- 216,224 ----
  				sf |= EXT2_COMPR_FL;
  				break;
+ #ifdef  HAVE_TCFS
+                         case 'X':
+                                 sf |= TCFS_SECURE_FL;
+                                 break;
+ #endif                                
  #ifdef	EXT2_NODUMP_FL
  			case 'd':
diff -r -C 2 -N e2fsprogs-1.06/misc/lsattr.1.in e2fsprogs-1.06-tcfs/misc/lsattr.1.in
*** e2fsprogs-1.06/misc/lsattr.1.in	Wed Jan 31 16:07:04 1996
--- e2fsprogs-1.06-tcfs/misc/lsattr.1.in	Tue Feb 18 13:57:19 1997
***************
*** 31,34 ****
--- 31,38 ----
  has been written by Remy Card <card@masi.ibp.fr>, the developer and maintainer
  of the ext2 fs.
+ 
+ It has been patched for
+ .BR TCFS
+ by Aniello Del Sorbo <anidel@mikonos.dia.unisa.it>.
  .SH BUGS
  There are none :-).
***************
*** 38,40 ****
  /pub/linux/packages/ext2fs.
  .SH SEE ALSO
! .BR chattr (1)
--- 42,47 ----
  /pub/linux/packages/ext2fs.
  .SH SEE ALSO
! .BR chattr (1),
! .BR tcfslogin (1),
! .BR tcfslogout (1),
! .BR tcfsgenkey (1)
