aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index d5633584..93d1c86e 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -405,12 +405,14 @@ int prc_filecheck(const char *pathname, const flag securecheck)
return(PS_IOERR);
}
+#ifndef __BEOS__
if (statbuf.st_mode & ~(S_IFREG | S_IREAD | S_IWRITE | S_IEXEC | S_IXGRP))
{
fprintf(stderr, "File %s must have no more than -rwx--x--- (0710) permissions.\n",
pathname);
return(PS_IOERR);
}
+#endif /* __BEOS__ */
#ifdef HAVE_GETEUID
if (statbuf.st_uid != geteuid())