[glib/glib-2-72: 20/39] gioerror: Handle EMLINK error as too-many-links error




commit a6a725c27ac84633056cc47771eb4fd16f027dac
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Jun 14 18:26:05 2022 +0200

    gioerror: Handle EMLINK error as too-many-links error
    
    This used to be a FreeBSD only error but it's actually defined also in
    linux.
    
    (cherry-picked from commit 9e09894414ca092a07cd094b4fad1fdab0906a9)

 gio/gioerror.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gio/gioerror.c b/gio/gioerror.c
index 38fc3d83f6..f52b950383 100644
--- a/gio/gioerror.c
+++ b/gio/gioerror.c
@@ -119,6 +119,12 @@ g_io_error_from_errno (gint err_no)
       break;
 #endif
 
+#ifdef EMLINK
+    case EMLINK:
+      return G_IO_ERROR_TOO_MANY_LINKS;
+      break;
+#endif
+
 #ifdef ELOOP
     case ELOOP:
       return G_IO_ERROR_TOO_MANY_LINKS;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]