=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tcfs/Attic/tcfsflag.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/tcfs/Attic/tcfsflag.c 2000/06/19 20:35:48 1.4 --- src/usr.bin/tcfs/Attic/tcfsflag.c 2000/06/19 22:42:28 1.5 *************** *** 1,4 **** ! /* $OpenBSD: tcfsflag.c,v 1.4 2000/06/19 20:35:48 fgsch Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD --- 1,4 ---- ! /* $OpenBSD: tcfsflag.c,v 1.5 2000/06/19 22:42:28 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD *************** *** 29,35 **** #include "tcfsdefines.h" tcfs_flags tcfs_getflags(int); ! tcfs_flags tcfs_setflags(int,tcfs_flags); int flags_main(int argc, char *argv[]) --- 29,35 ---- #include "tcfsdefines.h" tcfs_flags tcfs_getflags(int); ! tcfs_flags tcfs_setflags(int, tcfs_flags); int flags_main(int argc, char *argv[]) *************** *** 42,53 **** setuid(getuid()); if (argc < 3) { ! fprintf (stderr, "tcfsflags [op]{r,x,g} file\n" "\t op can either be + or -.\n\n"); exit(1); } ! fd = open(argv[2],O_RDONLY); if (!fd) { fprintf(stderr, "open failed\n"); exit(1); --- 42,53 ---- setuid(getuid()); if (argc < 3) { ! fprintf(stderr, "tcfsflags [op]{r,x,g} file\n" "\t op can either be + or -.\n\n"); exit(1); } ! fd = open(argv[2], O_RDONLY); if (!fd) { fprintf(stderr, "open failed\n"); exit(1); *************** *** 55,61 **** i = tcfs_getflags(fd); if (i.flag == -1) { ! fprintf(stderr,"getflags error\n"); close(fd); exit(1); } --- 55,61 ---- i = tcfs_getflags(fd); if (i.flag == -1) { ! fprintf(stderr, "getflags error\n"); close(fd); exit(1); }