Kouhei Sutou
null+****@clear*****
Wed Apr 15 23:42:17 JST 2015
Kouhei Sutou 2015-04-15 23:42:17 +0900 (Wed, 15 Apr 2015) New Revision: 120ee87001d1cf4c8c876fe23622ec98cfdee8ad https://github.com/groonga/groonga/commit/120ee87001d1cf4c8c876fe23622ec98cfdee8ad Message: See errno for error from unlink() Modified files: lib/io.c Modified: lib/io.c (+4 -2) =================================================================== --- lib/io.c 2015-04-15 23:37:10 +0900 (8b65c83) +++ lib/io.c 2015-04-15 23:42:17 +0900 (a16fdfb) @@ -719,7 +719,7 @@ grn_io_remove(grn_ctx *ctx, const char *path) SERR("stat"); return ctx->rc; } else if (unlink(path)) { - SERR(path); + ERRNO_ERR(path); return ctx->rc; } else { int fno; @@ -727,7 +727,9 @@ grn_io_remove(grn_ctx *ctx, const char *path) for (fno = 1; ; fno++) { gen_pathname(path, buffer, fno); if (!stat(buffer, &s)) { - if (unlink(buffer)) { SERR(buffer); } + if (unlink(buffer)) { + ERRNO_ERR(buffer); + } } else { break; } -------------- next part -------------- HTML����������������������������...다운로드