Skip to content

Commit

Permalink
xrootdfs: control allow_other by env XROOTD_NOALLOWOTHER, preserve de…
Browse files Browse the repository at this point in the history
…fault as on
  • Loading branch information
fizmat committed May 8, 2017
1 parent 5198c9c commit 0b78899
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/XrdFfs/XrdFfsXrootdfs.cc
Expand Up @@ -1233,7 +1233,10 @@ int main(int argc, char *argv[])
cmdline_opts = (char **) malloc(sizeof(char*) * (argc -1 + 3));
cmdline_opts[0] = argv[0];
cmdline_opts[1] = strdup("-o");
cmdline_opts[2] = strdup("fsname=xrootdfs,max_write=131072,attr_timeout=10,entry_timeout=10,negative_timeout=5");
if (getenv("XROOTDFS_NOALLOWOTHER") != NULL && ! strcmp(getenv("XROOTDFS_NOALLOWOTHER"),"1") )
cmdline_opts[2] = strdup("fsname=xrootdfs,max_write=131072,attr_timeout=10,entry_timeout=10,negative_timeout=5");
else
cmdline_opts[2] = strdup("fsname=xrootdfs,allow_other,max_write=131072,attr_timeout=10,entry_timeout=10,negative_timeout=5");

for (int i = 1; i < argc; i++)
cmdline_opts[i+2] = argv[i];
Expand Down

0 comments on commit 0b78899

Please sign in to comment.