On Thu, Mar 19, 2015 at 10:52:36PM +, Connor Lane Smith wrote:
> On 19 March 2015 at 22:25, Alexander Huemer wrote:
> > - if (chroot(".") == -1) {
> > + if (chroot(chrootdir) == -1) {
>
> This looks wrong; see line 709:
>
> > if (chdir(chrootdir) == -1) {
>
> So on line 713 . sh
On 19 March 2015 at 22:25, Alexander Huemer wrote:
> - if (chroot(".") == -1) {
> + if (chroot(chrootdir) == -1) {
This looks wrong; see line 709:
> if (chdir(chrootdir) == -1) {
So on line 713 . should be chrootdir, because it just chdir'd there.
cls
---
quark.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quark.c b/quark.c
index 9c8928d..ff13592 100644
--- a/quark.c
+++ b/quark.c
@@ -710,7 +710,7 @@ main(int argc, char *argv[])
logerrmsg("error\tchdir %s: %s\n", chrootdir, strerror(errno));