summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Rosenfeld <hans.rosenfeld@nexenta.com>2014-12-17 22:04:39 +0100
committerRobert Mustacchi <rm@joyent.com>2014-12-19 14:45:33 -0800
commit277b8dcb887b89d7465085652bc00d7842be2792 (patch)
treec3a4fc35ae2d4ea6aba1ced160a93e1893569c0e
parent2ec99e3e987d8aa273f1e9ba2b983557d058198c (diff)
downloadillumos-joyent-277b8dcb887b89d7465085652bc00d7842be2792.tar.gz
5444 cannot exec from hsfs since 5405
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gordon Ross <gordon.ross@nexenta.com> Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r--usr/src/uts/common/fs/hsfs/hsfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c
index 5375f883ae..c4475ef2ea 100644
--- a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c
+++ b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c
@@ -1797,7 +1797,7 @@ hsfs_map(
if (vp->v_flag & VNOMAP)
return (ENOSYS);
- if (prot & PROT_WRITE)
+ if ((prot & PROT_WRITE) && (flags & MAP_SHARED))
return (ENOSYS);
if (off > HS_MAXFILEOFF || off < 0 ||