bookmark.c remove some global buffers

refactor to allow removing some of the static buffers

Change-Id: Ia3ff6ea28f35634fd8c31b023431ad53bd542085
This commit is contained in:
William Wilgus 2022-11-24 21:30:47 -05:00
parent 8b522b8973
commit 780990fe5d
3 changed files with 117 additions and 65 deletions

View file

@ -1425,6 +1425,8 @@ int open_pathfmt(char *buf, size_t size, int oflag, const char *pathfmt, ...)
va_start(ap, pathfmt);
vsnprintf(buf, size, pathfmt, ap);
va_end(ap);
if ((oflag & O_PATH) == O_PATH)
return -1;
return open(buf, oflag, 0666);
}