Jon Nelson <[EMAIL PROTECTED]> writes:
> On Tue, 20 Apr 2004, Lloyd Zusman wrote:
>
>> At the bottom of this message is a patch for courier-0.45.4.20040411.
>> I'm sure that it will work in the newer release(s). It took 8 minutes
>> to write, test, and produce the patch, including my learning curve on
>> where to find the 'main' method and the version info for this
>> executable. Now, the following will work:
>>
>> % ./courier --version
>> 0.45
>
> Might I ask that the patch be expanded to print a more typical response?
> More like:
>
> courier supervisory daemon 0.45
> Copyright (C) ..... Double Precision .....
>
> Or whatever goes there?
Just change "VERSION" to "COURIER_COPYRIGHT" in the patch.
% courier --version
Courier 0.45.4.20040411 Copyright 1999-2004 Double Precision, Inc.
Updated patch:
*** courier/courier.c.orig Tue Apr 20 09:51:31 2004
--- courier/courier.c Tue Apr 20 15:58:12 2004
***************
*** 31,36 ****
--- 31,42 ----
int main(int argc, char **argv)
{
+ if (argc > 1 && strcmp(argv[1], "--version") == 0)
+ {
+ printf("%s\n", COURIER_COPYRIGHT);
+ exit(0);
+ }
+
if (chdir(courierdir()))
{
perror("chdir");
--
Lloyd Zusman
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users