Skip Menu |
 

Date: Thu, 22 Feb 2007 15:05:03 -0800 (Pacific Standard Time)
From: petesea@bigfoot.com
Subject: KfW 3.1: stderr of kinit/klist/kdestroy cannot be re-directed to file
To: kfw-bugs@mit.edu
Error output from kinit/klist/kdestroy will display a Windows dialog if
stderr is re-directed to a file.

Running this from a DOS command prompt returns stderr to the DOS command
window (as I would expect):

C:\> klist -c foobar
klist: No credentials cache found (ticket cache API:foobar)

But if stderr is re-directed to a file, it displays a Windows dialog
instead and nothing goes to the file:

C:\> klist -c foobar 2> err.log
(dialog with OK button -- same error as above)
(err.log is empty)

Re-directing stdout (assuming the command did not return an error) seems to
work fine, but re-directing stderr doesn't.

This makes it very difficult to log error messages if kinit/klist/kdestroy
are run from a background job, and therefore very difficult to diagnose
problems.
Date: Thu, 22 Feb 2007 18:23:09 -0500
From: Jeffrey Altman <jaltman@mit.edu>
To: rt-kfw@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #5446] KfW 3.1: stderr of kinit/klist/kdestroy cannot be re-directed to file
RT-Send-Cc:
This issue was discussed on kerberos@mit.edu under the subject "KfW 3.1:
stderr of kinit/klist/kdestroy cannot be re-directed to file" and on
Zephyr.

Instance: kfw Time: Tue Feb 20 2007 10:47:21 Host: no-knife.mit.edu
From: Jeffrey Altman <jaltman@ATHENA.MIT.EDU>

the right answer is that kinit should be a console app and treated as
such. gui apps should not execute it and kinit should not produce
dialogs or message boxes.

but that is not how the code was written because back in the good old
days there were other usability concerns. changing the behavior now
will result in some app that depends on this behavior breaking

----

I would like someone from MIT to comment before such a change is made.

Jeffrey Altman
From: kpkoch@mit.edu
Subject: SVN Commit
All Windows apps were popping MessageBoxes when stderr is redirected. Console apps shouldn't and no longer do that. Added isGuiApp, which tests gui resource usage.

Removed duplicate nested tests for _WIN32.
Commit By: kpkoch



Revision: 19292
Changed Files:
U trunk/src/util/et/com_err.c
From: tlyu@mit.edu
Subject: SVN Commit
pull up r19292 from trunk

r19292@cathode-dark-space: kpkoch | 2007-03-27 13:27:41 -0400
Ticket: 5446
Status: resolved
Target_Version: 1.6.1
Tags: pullup

All Windows apps were popping MessageBoxes when stderr is redirected. Console apps shouldn't and no longer do that. Added isGuiApp, which tests gui resource usage.

Removed duplicate nested tests for _WIN32.


Commit By: tlyu



Revision: 19343
Changed Files:
_U branches/krb5-1-6/
U branches/krb5-1-6/src/util/et/com_err.c