From 3649e46b034d37ce1dca29fa3d59252fb3200409 Mon Sep 17 00:00:00 2001 From: angt Date: Mon, 18 Jan 2016 16:02:29 +0100 Subject: [PATCH] Remove the absolute path restriction on statefile --- src/main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.c b/src/main.c index a2a4674..faef1ce 100644 --- a/src/main.c +++ b/src/main.c @@ -1137,11 +1137,6 @@ int main (int argc, char **argv) retry_count = 0; } - if (statefile && statefile[0]!='/') { - gt_log("statefile must be an absolute path\n"); - return 1; - } - if (sodium_init()==-1) { gt_log("libsodium initialization has failed\n"); return 1; @@ -1201,8 +1196,6 @@ int main (int argc, char **argv) default: _exit(0); } - - chdir("/"); } if (state_init(statefile))