[glib/glib-2-72: 21/39] gioerror: Map ETXTBSY to G_FILE_ERROR_BUSY




commit 28fe069024778998d64dbeaf06b742c64352a92a
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Jun 14 18:41:33 2022 +0200

    gioerror: Map ETXTBSY to G_FILE_ERROR_BUSY
    
    It's a busy text file, but we don't care much about specifics so we
    can just return the generic busy error.
    
    (cherry-picked from commit 6bc6b7ef3012487966a99a5db06d27000205ab38)

 gio/gioerror.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gio/gioerror.c b/gio/gioerror.c
index f52b950383..7566c49db2 100644
--- a/gio/gioerror.c
+++ b/gio/gioerror.c
@@ -217,6 +217,12 @@ g_io_error_from_errno (gint err_no)
       break;
 #endif
 
+#ifdef ETXTBSY
+    case ETXTBSY:
+      return G_IO_ERROR_BUSY;
+      break;
+#endif
+
 #ifdef EWOULDBLOCK
     case EWOULDBLOCK:
       return G_IO_ERROR_WOULD_BLOCK;


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