/**
* Converts a UNIX errno into a DBusResultCode.
*
+ * @todo should cover more errnos, specifically those
+ * from open().
+ *
* @param error_number the errno.
* @returns the result code.
*/
#ifdef EADDRINUSE
case EADDRINUSE:
return DBUS_RESULT_ADDRESS_IN_USE;
-#endif
+#endif
+#ifdef EEXIST
+ case EEXIST:
+ return DBUS_RESULT_FILE_NOT_FOUND;
+#endif
+#ifdef ENOENT
+ case ENOENT:
+ return DBUS_RESULT_FILE_NOT_FOUND;
+#endif
}
return DBUS_RESULT_FAILED;