git: libc - fix handling of temporary file used by hash(3)

看板DFBSD_commit作者時間15年前 (2011/02/04 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit e90a7c45c3303ed54c0fde732b2ba32dc80ffd9b Author: YONETANI Tomokazu <y0netan1@dragonflybsd.org> Date: Thu Feb 3 14:29:48 2011 +0900 libc - fix handling of temporary file used by hash(3) This fixes applications using DB_HASH, such as tsort, to unexpectedly try to open a temporary file in the current directory and fail if it has no write permission there. Obtained from FreeBSD, r190485, by delphij: db/btree/bt_open.c: check return value of snprintf() and return value if the result is truncated. db/hash/hash_page.c: use the same way to create temporary file as bt_open.c; check snprintf() return value. Obtained from: OpenBSD Summary of changes: lib/libc/db/btree/bt_open.c | 8 ++++++-- lib/libc/db/hash/hash_page.c | 19 +++++++++++++++---- 2 files changed, 21 insertions(+), 6 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e90a7c45c3303ed54c0fde732b2ba32dc80ffd9b -- DragonFly BSD source repository
文章代碼(AID): #1DIuWH5S (DFBSD_commit)