shell uid always gets root.

Change-Id: Ic1d1a0eccf7fae96243c19bf8abc207b5b991200
Possible fix for db crash
Merge pull request #2 from HomerSp/master

Possible db fix
Fix potential buffer overflow when getting a shell from the command line
Fix file mode:
bump verison
Fix db double close
Merge branch 'master' of git://github.com/ChainsDD/su-binary
Merge pull request #3 from git-core/master

The patches I've sent early
Clean up whitespace
bump version
bump version
Report error from read rather than successful completion of close
Remove setgroups in allow()

supplementary groups have been dropped already at this time
(introduced by commit 00f1bb547ef219b690a440920c7bc29be2a1d348)
Always free result table if sqlite3_get_table succeeds
Clean up sources
Fix potential security flaw in creation of sockets/directories

Previous code created a file object with two steps: the creation itself with
default umask/mode and setting necessary permissions then. This approach is known to
lead to a race condition when malicious process can open an object before
permissions is set.

The patch sets creation mask (mask) to 027, thus denying any access from others. Also,
the patch removes all dead code which is not needed after changes mentioned.
Remove all occurences of req_uid
Merge pull request #4 from git-core/master

Fix potential security flaw in creation of sockets/directories
Fix for Android 4.0.3 from shakalaca on github