summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-07-22 09:25:28 +0000
committerderaadt <deraadt@openbsd.org>1998-07-22 09:25:28 +0000
commit3c30dcdf99a5f6704d58936aec0519ec7cc4305d (patch)
treedc27bffa831aaecfa2ad918951d9edc66eee8be7
parentI must learn to read cvs error messages. When they tell you there are (diff)
downloadwireguard-openbsd-3c30dcdf99a5f6704d58936aec0519ec7cc4305d.tar.xz
wireguard-openbsd-3c30dcdf99a5f6704d58936aec0519ec7cc4305d.zip
use S_IXUSR instead of 0100; noted by form
-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