diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 13:39:46 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 13:39:46 +0000 |
commit | 24f58da39ddf4f815b50967a7fc14a3f3be52826 (patch) | |
tree | d14033338828a8a03b3562472148a3387b50215b /bind93-rh490837.patch | |
parent | 9820d3163ebcf0cc644d5332a6b1f8eb755f279b (diff) |
automatic import of bindopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'bind93-rh490837.patch')
-rw-r--r-- | bind93-rh490837.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bind93-rh490837.patch b/bind93-rh490837.patch new file mode 100644 index 0000000..4b32b4d --- /dev/null +++ b/bind93-rh490837.patch @@ -0,0 +1,34 @@ +diff --git a/lib/isc/lex.c b/lib/isc/lex.c +index cd44fe3..5b7c539 100644 +--- a/lib/isc/lex.c ++++ b/lib/isc/lex.c +@@ -27,6 +27,8 @@ + #include <isc/string.h> + #include <isc/util.h> + ++#include "../errno2result.h" ++ + typedef struct inputsource { + isc_result_t result; + bool is_file; +@@ -422,7 +424,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) { + #endif /* if defined(HAVE_FLOCKFILE) && defined(HAVE_GETC_UNLOCKED) */ + if (c == EOF) { + if (ferror(stream)) { +- source->result = ISC_R_IOERROR; ++ source->result = isc__errno2result(errno); + result = source->result; + goto done; + } +diff --git a/lib/isc/unix/errno2result.c b/lib/isc/unix/errno2result.c +index e3e2644..5e58600 100644 +--- a/lib/isc/unix/errno2result.c ++++ b/lib/isc/unix/errno2result.c +@@ -37,6 +37,7 @@ isc___errno2result(int posixerrno, bool dolog, const char *file, + case EINVAL: /* XXX sometimes this is not for files */ + case ENAMETOOLONG: + case EBADF: ++ case EISDIR: + return (ISC_R_INVALIDFILE); + case ENOENT: + return (ISC_R_FILENOTFOUND); |