Skip to content

Commit b96e32e

Browse files
committed
Work around ENOTEMPTY being an alias for EEXIST on some platforms.
1 parent 5840b89 commit b96e32e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/utils/error/elog.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.121 2003/08/27 00:33:34 petere Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.122 2003/09/03 15:49:42 tgl Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -543,7 +543,9 @@ errcode_for_file_access(void)
543543
/* Wrong object type or state */
544544
case ENOTDIR: /* Not a directory */
545545
case EISDIR: /* Is a directory */
546+
#if defined(ENOTEMPTY) && (ENOTEMPTY != EEXIST) /* same code on AIX */
546547
case ENOTEMPTY: /* Directory not empty */
548+
#endif
547549
edata->sqlerrcode = ERRCODE_WRONG_OBJECT_TYPE;
548550
break;
549551

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy