Skip to content

Commit

Permalink
[backend] use POSIX::access instead of '-w'
Browse files Browse the repository at this point in the history
Because -w does not look at ACLs.
  • Loading branch information
mlschroe committed Sep 26, 2016
1 parent 388cc0e commit 9799ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSStdServer.pm
Expand Up @@ -273,7 +273,7 @@ sub server {
}
}
mkdir_p($rundir);
die("cannot write to rundir '$rundir'\n") unless -w $rundir;
die("cannot write to rundir '$rundir'\n") unless POSIX::access($rundir, POSIX::W_OK);
# intialize xml converter to speed things up
XMLin(['startup' => '_content'], '<startup>x</startup>');

Expand Down

0 comments on commit 9799ca7

Please sign in to comment.