From 426b90eb144b92048edef8d77b8894b70ee40c72 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 5 Jul 2008 13:42:56 +0100 Subject: Don't create save directory until needed --- src/getht.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/getht.c') diff --git a/src/getht.c b/src/getht.c index 6528652..63ba956 100644 --- a/src/getht.c +++ b/src/getht.c @@ -75,16 +75,6 @@ int main(int argc, char *argv[]) if(loadconfig(getht_path, &options) != 0) writefreshconfig(getht_path, &options); - if(!opendir(options.save_path)) - if(mkdir(options.save_path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) - { - fprintf(stderr,"Cannot open/create directory %s",options.save_path); - printf("Please enter the path of a directory to save issues in: "); - scanf("%s", options.save_path); - - updateconfig(getht_path, &options); - } - /* Parse command line options */ char c; static struct option long_opts[] = -- cgit v1.2.3