wor/goanysync — pull request #4 by daringer (2012-07-29 02:29:36+00:00)
Title: checking if syncerBin is executable and if tmpfsPath is writable (still not absolutly correct, but a beginning)

- syncBinary has now a default value "rsync"
- syncBinary is searched inside PATH
- syncBinary is checked with filemode & 0111, means "can _anyone_ execute it"

- whattosync, tmpfs, and syncbinary are checked for existance (inside the config) before they get dereferenced - if they are not - it crashes during dereferencing

- tmpfs is checked with filemode & 0222, means "can _anyone_ write it"

both filemode checks still have to be improved so that they check for the exactly needed permissions according to the user's uid and gid, but this is not so bad I think, because at this moment it is a root-only-application, means if anyone can execute/write it - root will be included...