summaryrefslogtreecommitdiff
path: root/src/rc/checkpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/checkpath.c')
-rw-r--r--src/rc/checkpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index dc783af..2fdaf22 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -109,7 +109,7 @@ static int do_check (char *path, uid_t uid, gid_t gid, mode_t mode, int file)
static int parse_mode (mode_t *mode, char *text)
{
/* Check for a numeric mode */
- if ((*mode - '0') < 8) {
+ if ((*text - '0') < 8) {
char *p;
unsigned long l = strtoul (text, &p, 8);
if (*p || l > 07777U) {