

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
34 messages in net.sourceforge.lists.courier-usersRe: [courier-users] ctlfile| From | Sent On | Attachments |
|---|---|---|
| Julian Mehnle | Jan 18, 2005 12:03 pm | |
| Scott | Jan 18, 2005 6:57 pm | |
| Frederik Dannemare | Jan 18, 2005 7:54 pm | |
| Julian Mehnle | Jan 19, 2005 4:00 am | |
| Alexander Lazic | Jan 19, 2005 5:01 am | |
| Julian Mehnle | Jan 19, 2005 7:50 am | |
| Alexander Lazic | Jan 19, 2005 2:07 pm | |
| Jay Lee | Jan 19, 2005 2:23 pm | |
| Gordon Messmer | Jan 19, 2005 3:18 pm | |
| Sam Varshavchik | Jan 19, 2005 3:35 pm | |
| Julian Mehnle | Jan 19, 2005 3:42 pm | |
| Gordon Messmer | Jan 19, 2005 3:56 pm | |
| Sam Varshavchik | Jan 19, 2005 4:07 pm | |
| Mitch (WebCob) | Jan 19, 2005 4:42 pm | |
| Mitch (WebCob) | Jan 19, 2005 4:46 pm | |
| Sam Varshavchik | Jan 19, 2005 5:13 pm | |
| Gordon Messmer | Jan 19, 2005 6:11 pm | |
| Sam Varshavchik | Jan 19, 2005 6:17 pm | |
| Gordon Messmer | Jan 19, 2005 10:38 pm | |
| Alexander Lazic | Jan 20, 2005 2:29 am | |
| Alessandro Vesely | Jan 20, 2005 4:56 am | |
| Mark Bucciarelli | Jan 21, 2005 1:02 pm | |
| Julian Mehnle | Jan 21, 2005 3:03 pm | |
| Julian Mehnle | Jan 24, 2005 8:15 am | |
| Gordon Messmer | Jan 26, 2005 10:51 am | |
| Gordon Messmer | Jan 26, 2005 12:53 pm | .patch |
| Sam Varshavchik | Jan 26, 2005 4:22 pm | |
| Gordon Messmer | Jan 26, 2005 10:46 pm | |
| Alessandro Vesely | Jan 28, 2005 1:49 am | |
| Gordon Messmer | Jan 28, 2005 10:37 am | |
| Bill Long | Jan 29, 2005 3:42 pm | |
| Sam Varshavchik | Jan 29, 2005 4:51 pm | |
| Bill Long | Jan 29, 2005 5:29 pm | |
| Bill Long | Jan 30, 2005 1:23 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [courier-users] ctlfile | Actions... |
|---|---|---|
| From: | Gordon Messmer (yiny...@eburg.com) | |
| Date: | Jan 28, 2005 10:37:38 am | |
| List: | net.sourceforge.lists.courier-users | |
Alessandro Vesely wrote:
Gordon Messmer wrote:
Sam Varshavchik wrote:
I think that ctlfile should be opened for append mode.
...capital idea. Am I wrong to assume that all of the calls to open() in the openctl() function should have the same flags?
I'm not sure what you mean.
I mean that in the openctl function, there are three calls to open() which, I would assume, should have the same flags. That wasn't true originally, and I hoped that Sam would correct me if I was wrong to use the same flags in all three instances.
And I wonder what sense may have to truncate and append at the same time. (And O_TRUNC is not needed on systems where O_CREAT | O_EXCL make the open fail in case the file already exists.)
That's true, but the O_TRUNC option shouldn't break anything, so I didn't bother to remove it.
[...] - O_WRONLY | O_TRUNC | O_CREAT | O_EXCL, + O_WRONLY | O_TRUNC | O_CREAT | O_EXCL | O_APPEND, PERMISSION);
An lseek(fd, 0, SEEK_END) upon return from the filter should suffice.
It should, but O_APPEND is easier and probably better in the sense that every record written to a control file is supposed to be appended to the end. If the file is opened with O_APPEND, that will always be the case.
I posted a patch that would seek after filtering. You can compare the two approaches if you want to.








.patch