summaryrefslogtreecommitdiff
path: root/usr.sbin/tftpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-06-01 21:06:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-06-01 21:06:40 +0000
commit71316e4e9afa7eca4f268eff8ff979b0f4f3c985 (patch)
tree5a74f73c2421b01bf8270b2af5095d88c8277647 /usr.sbin/tftpd
parent8373c2c7a0cb7419707271594a1ad44c288da694 (diff)
use the standardized names instead of S_IREAD and S_IWRITE
ok guenther dtucker
Diffstat (limited to 'usr.sbin/tftpd')
-rw-r--r--usr.sbin/tftpd/tftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c
index 1d4a4042f7c..9e41d81cd75 100644
--- a/usr.sbin/tftpd/tftpd.c
+++ b/usr.sbin/tftpd/tftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftpd.c,v 1.14 2013/05/07 00:26:34 dlg Exp $ */
+/* $OpenBSD: tftpd.c,v 1.15 2013/06/01 21:06:39 deraadt Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@uq.edu.au>
@@ -927,10 +927,10 @@ validate_access(struct tftp_client *client, const char *filename)
}
} else {
if (mode == RRQ) {
- if ((stbuf.st_mode & (S_IREAD >> 6)) == 0)
+ if ((stbuf.st_mode & (S_IRUSR >> 6)) == 0)
return (EACCESS);
} else {
- if ((stbuf.st_mode & (S_IWRITE >> 6)) == 0)
+ if ((stbuf.st_mode & (S_IWUSR >> 6)) == 0)
return (EACCESS);
}
}