diff options
| author | Mike Heffner <mikeh@FreeBSD.org> | 2001-06-12 23:02:07 +0000 |
|---|---|---|
| committer | Mike Heffner <mikeh@FreeBSD.org> | 2001-06-12 23:02:07 +0000 |
| commit | 354ae0a4c563ce9a5bff083a51a409efa9b96640 (patch) | |
| tree | 061814e6d19b13e28effd6d24e26fad5341bdb15 /usr.bin/biff | |
| parent | 60f2ef64d1163739a05ce74811015ec6e2ab8ef0 (diff) | |
Notes
Diffstat (limited to 'usr.bin/biff')
| -rw-r--r-- | usr.bin/biff/biff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c index 718263f5cab6..b592d05f46c8 100644 --- a/usr.bin/biff/biff.c +++ b/usr.bin/biff/biff.c @@ -80,23 +80,23 @@ main(argc, argv) 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 |
