mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
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.
This commit is contained in:
@@ -121,6 +121,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;
|
||||
|
Reference in New Issue
Block a user