On Wed, 26 Feb 2003, Dave Peters wrote:
> Hi there,
>
> I have read somewhere that the source could be modified to give a more
> detailed error message in the syslog.
>
> Rather then:
>
> > =-=- syslog
> > Feb 22 12:51:15 hostname imaplogin: Connection, ip=[::ffff:68.144.21.215]
> > Feb 22 12:51:16 hostname imaplogin: chdir: No such file or directory
>
> It should say something like:
>
> imaplogin: chdir TO /PATH/SOMEWHERE no such file or directory
I can't be sure of this, but I think the correct code to modify
would be authlib.c near line 48.
I humbly suggest code similar to that used in imap/imapd.c:3265
Near line 48 of authlib.c (as of courier-imap 1.7.0)
change:
perror("chdir");
to:
fprintf(stderr, "chdir \"%s\": %s\n", homedir, strerror(errno));
--
"Never try to write to ROM - it wastes your time and annoys the ROM."
Jon Nelson <[EMAIL PROTECTED]>
C and Python Code Gardener
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users