sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 71461978f24e0e56084c55ae87f4762e02e62c91
parent df035a6a2cd078ba8fe1af1d9d41d0975a6c3cea
Author: sin <sin@2f30.org>
Date:   Tue Feb  4 15:17:29 +0000

Error out on invalid mode in uudecode(1)

Diffstat:
uudecode.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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"); } } }