summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-04 17:35:01 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-04 17:35:01 +0000
commitba44e0fd197e71f4c9aac07c672fee9efb602ecc (patch)
treeb20fa2e0fa271e03b7852e9e77835e0352ce1f88
parent295cefef8731231f4e407647ef2944853cf8d48e (diff)
downloadmailutils-ba44e0fd197e71f4c9aac07c672fee9efb602ecc.tar.gz
mailutils-ba44e0fd197e71f4c9aac07c672fee9efb602ecc.tar.bz2
(main): Improved check for debugging mode.
-rw-r--r--imap4d/imap4d.c2
-rw-r--r--pop3d/pop3d.c2
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;

Return to:

Send suggestions and report system problems to the System administrator.