Ethereal-dev: Re: [Ethereal-dev] save silently fails on Win XP

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Fri, 23 Jan 2004 22:40:19 +0100
Gary Hunt wrote:

Just thought I'd report a minor bug to you guys,
Versions:
    Ethereal v0.10.0
    WinPCAP v3.0.0.18
    Windows XP 5.1.2600
When saving a file using Ethereal GUI, if the user doesn't have permission to write to the selected folder then the save silently fails. Ideally the user would be warned that they don't have rights and return to the save dialogue. I'm guessing that the code traps the exception but doesn't handle it correctly. I'll happily research the fix in the source-code if someone can point me in the right place, I've done plenty of C/C++ but don't know where to look in the 29MB of code ;-) cheers, Gary

------------------------------------------------------------------------

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev
Well, if you press the ok button in the file save (as) dialog, this starts the function "file_open_ok_cb" in file gtk/file_dlg.c.

The actual file access is in one of the calls named cf_xy(), probably the cf_open() call.

Hint: Have a call to simple_dialog() to make a message to the user.

Happy debugging,

Regards, ULFL