diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-11-04 17:35:01 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-11-04 17:35:01 +0000 |
commit | ba44e0fd197e71f4c9aac07c672fee9efb602ecc (patch) | |
tree | b20fa2e0fa271e03b7852e9e77835e0352ce1f88 | |
parent | 295cefef8731231f4e407647ef2944853cf8d48e (diff) | |
download | mailutils-ba44e0fd197e71f4c9aac07c672fee9efb602ecc.tar.gz mailutils-ba44e0fd197e71f4c9aac07c672fee9efb602ecc.tar.bz2 |
(main): Improved check for debugging mode.
-rw-r--r-- | imap4d/imap4d.c | 2 | ||||
-rw-r--r-- | pop3d/pop3d.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/imap4d/imap4d.c b/imap4d/imap4d.c index 96d913541..3309073f4 100644 --- a/imap4d/imap4d.c +++ b/imap4d/imap4d.c @@ -113,7 +113,7 @@ main (int argc, char **argv) pam_service = "gnu-imap4d"; #endif - if (isatty (0)) + if (daemon_param.mode == MODE_INTERACTIVE && isatty (0)) { /* If input is a tty, switch to debug mode */ debug_mode = 1; diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c index 9de430832..7eb941ca6 100644 --- a/pop3d/pop3d.c +++ b/pop3d/pop3d.c @@ -95,7 +95,7 @@ main (int argc, char **argv) pam_service = (char *)"gnu-pop3d"; #endif - if (isatty (0)) + if (daemon_param.mode == MODE_INTERACTIVE && isatty (0)) { /* If input is a tty, switch to debug mode */ debug_mode = 1; |