Return to tcfsflag.c CVS log | Up to [local] / src / usr.bin / tcfs |
version 1.1, 2000/06/18 22:07:24 | version 1.2, 2000/06/19 01:36:17 | ||
---|---|---|---|
|
|
||
int fd; | int fd; | ||
tcfs_flags i; | tcfs_flags i; | ||
seteuid(getuid()); | |||
setuid(getuid()); | |||
if (argc < 3) { | if (argc < 3) { | ||
fprintf (stderr, "tcfsflags {r,x,g} file\n\n"); | fprintf (stderr, "tcfsflags {r,x,g} file\n\n"); | ||
exit(1); | exit(1); | ||
|
|
||
break; | break; | ||
} | } | ||
i = tcfs_setflags(fd,i); | i = tcfs_setflags(fd, i); | ||
if (i.flag == -1) { | if (i.flag == -1) { | ||
fprintf(stderr,"setflags error\n"); | fprintf(stderr, "setflags error\n"); | ||
exit(1); | exit(1); | ||
} | } | ||
close(fd); | close(fd); |