Hi Brian

Thanks for the reply and the patch. 

I have applied the patch.

Now it says:
Internal error (module sqconfig.c, line 63) - contact
system administrator

Unable to open for write:
./sqwebmail-ip
Permission denied

Since SqWebMail is installed as set-userid-root, I
expect it to run as the root user, so why a permission
problem? 

Is there any possibility to enhance your patch as
follows:
1.      To print the effective user (ie. As what user it is
attempting to open the file in write mode)

2.      To print the current working (ie. Where it is
trying to create the sqwebmail-ip)

Many thanks in advance.

Regards
Sagara

--- Brian Candler <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 08, 2003 at 07:06:54AM -0700, Sagara
> Wijetunga wrote:
> > complains ?Internal error (module sqconfig.c, line
> 63)
> > - contact system administrator?.
> 
> So, go to sqconfig.c, line 63, and you will find:
> 
> void write_sqconfig()
> ...
>                 f=fopen(p, "w"); 
>                 if (!f) enomem();   <<<< Here
> 
> So basically:
> (1) it has tried to write the config file to disk
> (2) it failed
> (3) it aborted
> 
> and hence this is almost certainly a permissions
> problem.
> 
> Try applying the attached patch to sqwebmail and
> recompiling. It should give
> a more helpful error message than just "Internal
> Error" which might help you
> pin down the problem.
> 
> Brian.
> 

> ATTACHMENT part 2 application/x-gunzip 



__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Reply via email to