mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 00:03:45 +02:00
util/nvmutil: lower default PATH_LEN
older unix needed lower Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
#ifdef PATH_MAX
|
#ifdef PATH_MAX
|
||||||
#define PATH_LEN (PATH_MAX)
|
#define PATH_LEN (PATH_MAX)
|
||||||
#else
|
#else
|
||||||
#define PATH_LEN 4096
|
#define PATH_LEN 1024
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -2103,7 +2103,7 @@ fsync_dir(const char *path)
|
|||||||
(PATH_LEN) >= 256
|
(PATH_LEN) >= 256
|
||||||
size_t maxlen = PATH_LEN;
|
size_t maxlen = PATH_LEN;
|
||||||
#else
|
#else
|
||||||
size_t maxlen = 4096;
|
size_t maxlen = 1024;
|
||||||
#endif
|
#endif
|
||||||
size_t pathlen;
|
size_t pathlen;
|
||||||
/* char dirbuf[maxlen]; */
|
/* char dirbuf[maxlen]; */
|
||||||
@@ -2867,7 +2867,7 @@ new_tmpfile(int *fd, int local, const char *path)
|
|||||||
(PATH_LEN) >= 256
|
(PATH_LEN) >= 256
|
||||||
maxlen = PATH_LEN;
|
maxlen = PATH_LEN;
|
||||||
#else
|
#else
|
||||||
maxlen = 4096;
|
maxlen = 1024;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tmpname = default_tmpname;
|
tmpname = default_tmpname;
|
||||||
|
|||||||
Reference in New Issue
Block a user