It's not correct.

The function rename() can be used instead of link().

Even qmail uses link(), but now it is working without problems using
rename().

This is the work done by kbo to patch his vpopmail to work with coda

int safe_rename(char *old, char *new)
{
#ifndef ENABLE_CODA
    return(rename(old, new));
#else
    link(old, new);
    unlink(old);
#endif

Please let me know what do you think about. :)
---
Cordiali saluti / Best regards
Andrea Cerrito
^^^^^^^^^^^^^^
Net.Admin @ Centro MultiMediale di Terni SpA
P.zzale Bosco 3A
05100 Terni IT
Tel. 0744 / 5441330
Fax. 0744 / 5441372

> -----Messaggio originale-----
> Da: Sam Varshavchik [mailto:[EMAIL PROTECTED]]
> Inviato: venerd� 4 maggio 2001 14.38
> A: [EMAIL PROTECTED]
> Oggetto: Re: Coda not working with sqwebmail
>
>
>
> Andrea Cerrito writes:
>
> > Hi.
> >
> > I'm using sqwebmail in a Coda fs environment, and it works
> perfectly, except
> > for the delete function.
> > Coda doesn't allow hardlink, and this is the error (strace of the httpd
> > serving the cgi):
> >
> > [pid  7633] link(".Sent/cur/988901400.6099.homer-a.mgt.int,S=1332:2,S",
> > ".Trash/cur/988901400.6099.homer-a.mgt.int,S=1332:2,S") = -1
> EXDEV (Invalid
> > cross-device link)
> >
> > I found a lot of link() in the sqwebmail code, so I'm not sure
> what I have
> > to modify.
> > All functions that must link files (ie: move) must use rename()
> instead of
> > link() (I've already patched qmail / vpopmail).
> >
> > This is a note problem with Coda.
> > Where are the link() functions to be modified?
> > I'm using sqwebmail 2.0.0.
>
> There's nothing to modify.  There are no acceptable substitutes for hard
> links.
>
>
> --
> Sam
>

Reply via email to