summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-22 09:25:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-22 09:25:29 +0000
commit55fc30f96bf26fbc4ef03930e5ba827c3304c58a (patch)
tree856938b35b12f238e7fe5b8e911b512671923dc0 /usr.bin
parentb6b81eb9ee2855d38e43e530c72b86eb27422b5c (diff)
use S_IXUSR instead of 0100; noted by form
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/biff/biff.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c
index 7c927f52367..50faed8befa 100644
--- a/usr.bin/biff/biff.c
+++ b/usr.bin/biff/biff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: biff.c,v 1.3 1997/01/15 23:42:14 millert Exp $ */
+/* $OpenBSD: biff.c,v 1.4 1998/07/22 09:25:28 deraadt Exp $ */
/* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)biff.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: biff.c,v 1.3 1997/01/15 23:42:14 millert Exp $";
+static char rcsid[] = "$OpenBSD: biff.c,v 1.4 1998/07/22 09:25:28 deraadt Exp $";
#endif
#endif /* not lint */
@@ -85,23 +85,23 @@ main(argc, argv)
err(2, "stat");
if (*argv == NULL) {
- (void)printf("is %s\n", sb.st_mode&0100 ? "y" : "n");
- exit(sb.st_mode & 0100 ? 0 : 1);
+ (void)printf("is %s\n", sb.st_mode & S_IXUSR ? "y" : "n");
+ exit(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, name);
break;
case 'y':
- if (chmod(name, sb.st_mode | 0100) < 0)
+ if (chmod(name, sb.st_mode | S_IXUSR) < 0)
err(2, name);
break;
default:
usage();
}
- exit(sb.st_mode & 0100 ? 0 : 1);
+ exit(sb.st_mode & S_IXUSR ? 0 : 1);
}
static void