summaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
Diffstat (limited to 'alpine')
-rw-r--r--alpine/arg.c1
-rw-r--r--alpine/osdep/debuging.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/alpine/arg.c b/alpine/arg.c
index 25419b30..57c39fca 100644
--- a/alpine/arg.c
+++ b/alpine/arg.c
@@ -1165,6 +1165,7 @@ process_debug_str(char *debug_str)
}
}
+ if(usage >= 0) ps_global->write_debug_file++;
if(!new_style_debug_arg){
#ifdef CSRIMALLOC
ps_global->debug_malloc =
diff --git a/alpine/osdep/debuging.c b/alpine/osdep/debuging.c
index 47a056bf..f7a29716 100644
--- a/alpine/osdep/debuging.c
+++ b/alpine/osdep/debuging.c
@@ -74,7 +74,7 @@ init_debug(void)
char newfname[MAXPATH+1], filename[MAXPATH+1], *dfile = NULL;
int i, fd;
- if(!(debug || ps_global->debug_imap || ps_global->debug_tcp))
+ if(!((debug || ps_global->debug_imap || ps_global->debug_tcp) && ps_global->write_debug_file))
return;
for(i = ps_global->debug_nfiles - 1; i > 0; i--){