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:
parent
2239e140e5
commit
d44b4bd7f2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue