diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-25 00:23:48 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-25 00:30:39 +0000 |
| commit | 1228f7e0e5ade7ff10b4f494097e3f7eb45fd795 (patch) | |
| tree | b3b4a67e10ad52fc4aaf06ae7b582f31bf75fa1f /util/libreboot-utils/lib/mkhtemp.c | |
| parent | f06db344ad53c987e38970b55e119a5af36641e1 (diff) | |
util/mkhtemp: require at least 3 X
the GNU one requires 3. we should be compatible
with them. i'm going to work on the compatibility
mode - this is phase one!
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/mkhtemp.c')
| -rw-r--r-- | util/libreboot-utils/lib/mkhtemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c index 6b4898fd..377ec206 100644 --- a/util/libreboot-utils/lib/mkhtemp.c +++ b/util/libreboot-utils/lib/mkhtemp.c @@ -611,7 +611,7 @@ mkhtemp(int *fd, for (end = template + len; /* count X */ end > template && *--end == 'X'; xc++); - if (if_err(xc < 6 || xc > len, EINVAL) || + if (if_err(xc < 3 || xc > len, EINVAL) || if_err(fname_len > len, EOVERFLOW)) return -1; |
