Index: biff.c =================================================================== RCS file: /home/ncvs/src/usr.bin/biff/biff.c,v retrieving revision 1.7 diff -u -r1.7 biff.c --- biff.c 2000/07/10 08:40:14 1.7 +++ biff.c 2001/05/26 20:17:12 @@ -52,6 +52,7 @@ #include #include +int main __P((int, char *[])); static void usage __P((void)); int @@ -80,23 +81,23 @@ err(2, "stat"); if (*argv == NULL) { - (void)printf("is %s\n", sb.st_mode&0100 ? "y" : "n"); - return(sb.st_mode & 0100 ? 0 : 1); + (void)printf("is %s\n", sb.st_mode & S_IXUSR ? "y" : "n"); + return(sb.st_mode & S_IXUSR ? 0 : 1); } switch(argv[0][0]) { case 'n': - if (chmod(name, sb.st_mode & ~0100) < 0) + if (chmod(name, sb.st_mode & ~S_IXUSR) < 0) err(2, "%s", name); break; case 'y': - if (chmod(name, sb.st_mode | 0100) < 0) + if (chmod(name, sb.st_mode | S_IXUSR) < 0) err(2, "%s", name); break; default: usage(); } - return(sb.st_mode & 0100 ? 0 : 1); + return(sb.st_mode & S_IXUSR ? 0 : 1); } static void