diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-15 23:41:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-15 23:41:06 +0100 |
commit | 2824f3f2abb94c780bcfce6c5763f2326cfa60af (patch) | |
tree | cb7a8f322e744be74bc2106e1816399e7641deec /src | |
parent | implement machinemode (diff) | |
download | slibc-2824f3f2abb94c780bcfce6c5763f2326cfa60af.tar.gz slibc-2824f3f2abb94c780bcfce6c5763f2326cfa60af.tar.bz2 slibc-2824f3f2abb94c780bcfce6c5763f2326cfa60af.tar.xz |
missed t and T in machinemode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/slibc-human/machinemode.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |