summaryrefslogtreecommitdiff
path: root/util/nvmutil
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-16 16:37:07 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commite6b53e8aed449470a9d6401be73e2d75ebd9ce4e (patch)
tree40caaa5106b46ad24fe8c49f5fade8fc67c0e1d0 /util/nvmutil
parentad5a4771bfb45691a8ccfaa44b412e7c93a0e076 (diff)
util/nvmutil: longer string in mkstemp
have A-Z too, for more randomness Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 5058f15b..77f7e412 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -308,6 +308,10 @@ typedef char static_assert_off_t_is_32[(sizeof(off_t) >= 4) ? 1 : -1];
#define O_EXCL 0
#endif
+#ifndef O_CREAT
+#define O_CREAT 0
+#endif
+
#ifndef O_NONBLOCK
#define O_NONBLOCK 0
#endif
@@ -3009,7 +3013,7 @@ x_i_mkstemp(char *template)
unsigned long len;
char *p;
- char ch[] = "abcdefghijklmnopqrstuvwxyz0123456789";
+ char ch[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
len = xstrxlen(template, PATH_LEN);