Commit 0e551158 authored by Tim Potter's avatar Tim Potter Committed by Gerald (Jerry) Carter
Browse files

r422: Compile fix for OpenBSD (ENOTSUP not supported - ha ha).

From Eric Mertens.
(This used to be commit d98a36b4596d1de979adab6c476022eb95474c48)
parent 848b8629
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -395,9 +395,11 @@ static NTSTATUS set_ea(connection_struct *conn, files_struct *fsp, const char *f
	}

	if (ret == -1) {
#ifdef ENOTSUP
		if (errno == ENOTSUP) {
			return NT_STATUS_EAS_NOT_SUPPORTED;
		}
#endif
		return map_nt_error_from_unix(errno);
	}