From 71461978f24e0e56084c55ae87f4762e02e62c91 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 4 Feb 2014 15:17:29 +0000 Subject: [PATCH] Error out on invalid mode in uudecode(1) --- uudecode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uudecode.c b/uudecode.c index f4694aa..9c19573 100644 --- a/uudecode.c +++ b/uudecode.c @@ -139,6 +139,8 @@ parsemode(const char *str, mode_t *validmode) if(octal & 00004) *validmode |= S_IROTH; if(octal & 00002) *validmode |= S_IWOTH; if(octal & 00001) *validmode |= S_IXOTH; + } else { + eprintf("invalid mode\n"); } } }