Error out on invalid mode in uudecode(1)

This commit is contained in:
sin 2014-02-04 15:17:29 +00:00
parent df035a6a2c
commit 71461978f2

View File

@ -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");
}
}
}