Blob Blame History Raw
commit 76d0c6f17a2e1e1c8efa84d67619c34d8884af51
Author: Dan Muntz <dmuntz@netapp.com>
Date:   Mon Nov 26 13:40:19 2007 -0800

    Add explicit chmod 777 of stripe files as workaround for non-root users.
    
    Signed-off-by: Dan Muntz <dmuntz@netapp.com>
    Signed-off-by: Mike Sager <sager@netapp.com>

diff --git a/utils/spnfsd/spnfsd_ops.c b/utils/spnfsd/spnfsd_ops.c
index cec4840..bd5486d 100644
--- a/utils/spnfsd/spnfsd_ops.c
+++ b/utils/spnfsd/spnfsd_ops.c
@@ -189,6 +189,10 @@ spnfsd_open(struct spnfs_msg *im)
 			im->im_res.open_res.status = errno;
 			break;
 		} else {
+			if (fchmod(fd, 0777) != 0) {
+				/* DM: we'll consider this non-fatal for now */
+				perror("chmod stripe");
+			}
 			im->im_res.open_res.status = 0;
 			close(fd);
 		}