From 357d3ecf84c8a3094f8a0edd8136ff5d7383e328 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 14 Jan 2008 05:39:01 +0000 Subject: fix --mode parsing by checking the proper function parameter --- src/rc/checkpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c index dc783af1..2fdaf22a 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) { -- cgit v1.2.3