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 ......(_)/ (_)
>``````````````````````````````````````````````````````````````````
>