From d44b4bd7f2c1ca4aeed7d625542e9a528c381a8c Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Tue, 12 Jun 2018 13:39:53 +0200 Subject: [PATCH] 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' --- main/share/gb_file_temp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/share/gb_file_temp.h b/main/share/gb_file_temp.h index 2d70d1443..72165a44d 100644 --- a/main/share/gb_file_temp.h +++ b/main/share/gb_file_temp.h @@ -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)