diff options
author | Mike Heffner <mikeh@FreeBSD.org> | 2001-06-02 03:10:07 +0000 |
---|---|---|
committer | Mike Heffner <mikeh@FreeBSD.org> | 2001-06-02 03:10:07 +0000 |
commit | db72da7b834a18ee380d3367eb628da7c671c927 (patch) | |
tree | 09116b88e4c0507895b705632ee05b7bce14a63e /usr.bin/biff | |
parent | 14070f45a13f2837b8171eef32f13fdf8e558b3b (diff) | |
download | src-test-db72da7b834a18ee380d3367eb628da7c671c927.tar.gz src-test-db72da7b834a18ee380d3367eb628da7c671c927.zip |
Use S_IXUSR instead of hardcoded values.
Reviewed by: md5
Notes
Notes:
svn path=/head/; revision=77608
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 718263f5cab69..b592d05f46c84 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 |