Well, I tried adding the write line in the code. I recompiled, installed
the patched qmail-popbull and qmail-pop3d and telneted in to port 100. It
still didn't update the .timestamp file.
I deleted the .timestamp file. It created a new one with the right
timestamp but....isn't that line supposed to put a "0" in the file? I'm
not a programmer but that's what it looks to me to be doing. The new
.timestamp file is still 0 bytes and empty.
????
Matt
On Wed, 31 Mar 1999, Mark Delany wrote:
> Change the patch so that after the open, do a write.
>
> write(fd, "0", 1);
>
> will do it.
>
> At 08:37 PM Wednesday 3/31/99, Matt Simerson wrote:
> >
> >So guys (Mark, Bernd, or Russ), what do you think? Is there anything that
> >you'd like me to try to get this working? I'd love to have popbull
> >working correctly.
> >
> >Matt
> >
> >On Thu, 1 Apr 1999, Bernd Eckenfels wrote:
> >
> >> On Tue, Mar 30, 1999 at 09:00:58AM -0800, Mark Delany wrote:
> >> > > creat is equivalent to open with flags equal to
> >> > > O_CREAT|O_WRONLY|O_TRUNC.
> >> >
> >> > Yes. My manpage says that too. I wonder whether mtime only applies if the
> >> > file doesn't exist though?
> >>
> >> Not creating an existing file does not modify it.
> >>
> >> Greetings
> >> Bernd
> >>
> >>>Mark Delany writes:
> >>> > Hmm. According to Solaris, mtime changes when you issue one of:
> >>> >
> >>> > creat(), mknod(), pipe(), utime(), and write(2).
> >>> >
> >>> > Does the patch write anything into .timestamp? Should it?
> >>>
> >>>No and absent a kernel bug, no:
> >>>
> >>> creat is equivalent to open with flags equal to
> >>> O_CREAT|O_WRONLY|O_TRUNC.
> >>>
> >>>int open_trunc(fn) char *fn;
> >>>{ return open(fn,O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT,0644); }
> >>>
> >--
> >-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
> >Crynwr supports Open Source(tm) Software| PGPok | There is good evidence
> >521 Pleasant Valley Rd. | +1 315 268 1925 voice | that freedom is the
> >Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | cause of world peace.
> >
> >``````````````````````````````````````````````````````````````````
> > Matt Simerson http://users.michweb.net/~matt
> > MichWeb Inc. - President http://www.michweb.net
> > The Art Farm - Technical Wizard http://www.theartfarm.com
> >
> > Better to dare Mighty Things and fail, than to live in __o
> > a gray twilight where there is neither victory or _-\<,_
> > defeat. -- attributed to Theodore Roosevelt ......(_)/ (_)
> >``````````````````````````````````````````````````````````````````
> >
>
>
``````````````````````````````````````````````````````````````````
Matt Simerson http://users.michweb.net/~matt
MichWeb Inc. - President http://www.michweb.net
The Art Farm - Technical Wizard http://www.theartfarm.com
Better to dare Mighty Things and fail, than to live in __o
a gray twilight where there is neither victory or _-\<,_
defeat. -- attributed to Theodore Roosevelt ......(_)/ (_)
``````````````````````````````````````````````````````````````````