diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-07-04 02:42:52 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-07-04 02:42:52 -0600 |
commit | c566cd0e4a7d9424a95c7d7c16f861e458bee8f1 (patch) | |
tree | b2c604c2e35621be166e0e8a902cc0dd291e4948 /alpine | |
parent | f720e89f631da58c355ead60b35225e43d0d9d33 (diff) | |
download | alpine-c566cd0e4a7d9424a95c7d7c16f861e458bee8f1.tar.xz |
* When building Alpine, the option --disable-debug will only affect if
its binary is compiled with debug, and not the ability of alpine to
generate internal debug. Alpine will not write debug files unless
started with the option -d, so for example "alpine -d 2" will generate
a debug file at level 2, but just issuing the alpine command will not
write any debug to a file.
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/arg.c | 1 | ||||
-rw-r--r-- | alpine/osdep/debuging.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/alpine/arg.c b/alpine/arg.c index 25419b3..57c39fc 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 47a056b..f7a2971 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--){ |