From 2824f3f2abb94c780bcfce6c5763f2326cfa60af Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 15 Nov 2015 23:41:06 +0100 Subject: missed t and T in machinemode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/slibc-human/machinemode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/slibc-human/machinemode.c b/src/slibc-human/machinemode.c index 136e99e..7b28665 100644 --- a/src/slibc-human/machinemode.c +++ b/src/slibc-human/machinemode.c @@ -86,6 +86,8 @@ int machinemode(mode_t* restrict mode, mode_t* restrict mask, const char* restri else if (*str == 'x') { if (part & bits[i][3]) goto invalid; else part |= bits[i][2]; } else if (*str == 's') { if (part & bits[i][3]) goto invalid; else part |= bits[i][3]; } else if (*str == 'S') { if (part & bits[i][3]) goto invalid; else part |= bits[i][4]; } + else if (*str == 't') { if (part & bits[i][3]) goto invalid; else part |= bits[i][3]; } + else if (*str == 'T') { if (part & bits[i][3]) goto invalid; else part |= bits[i][4]; } else if (*str != '-') goto invalid; if (symbol != '-') or |= part; if (symbol != '=') andn |= part; @@ -108,6 +110,8 @@ int machinemode(mode_t* restrict mode, mode_t* restrict mask, const char* restri else if (*str == 'x') { if (or & bits[i][3]) goto invalid; else or |= bits[i][2]; } else if (*str == 's') { if (or & bits[i][3]) goto invalid; else or |= bits[i][3]; } else if (*str == 'S') { if (or & bits[i][3]) goto invalid; else or |= bits[i][4]; } + else if (*str == 't') { if (or & bits[i][3]) goto invalid; else or |= bits[i][3]; } + else if (*str == 'T') { if (or & bits[i][3]) goto invalid; else or |= bits[i][4]; } else if (*str != '-') goto invalid; break; -- cgit v1.2.3-70-g09d2