Chmod reads mode bit string correctly

[INTERPRETER]
* BUG: Fix off-by-one error in FILE_mode_from_string which couldn't read mode bits 's' and 't'
This commit is contained in:
Tobias Boege 2018-06-12 13:39:53 +02:00
parent 2239e140e5
commit d44b4bd7f2

View file

@ -603,7 +603,7 @@ mode_t FILE_mode_from_string(mode_t mode, const char *str)
if (!c)
break;
for (i = 0; i < 3; i++)
for (i = 0; i <= 3; i++)
{
test = d->test[i];
if (!test)