summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-04-30 07:53:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:23 -0500
commit0e551158b7d36d75819c36ef6570c115f6efcdcf (patch)
tree329ad5ac080e2c01dc74ba4f368ddbca761c2aa3 /source3
parent848b86290d6539f250572e348973fc8aa6b627fd (diff)
downloadsamba-0e551158b7d36d75819c36ef6570c115f6efcdcf.tar.gz
samba-0e551158b7d36d75819c36ef6570c115f6efcdcf.tar.bz2
samba-0e551158b7d36d75819c36ef6570c115f6efcdcf.zip
r422: Compile fix for OpenBSD (ENOTSUP not supported - ha ha).
From Eric Mertens. (This used to be commit d98a36b4596d1de979adab6c476022eb95474c48)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 0d84c40065..0c6026392c 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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);
}