On Wed, Oct 24, 2012 at 03:29:44PM -0400, Rafael Schloming wrote: > I've put up an RC3 here: > > http://people.apache.org/~rhs/qpid-proton-0.1rc3/ > > The following are the changes from RC2: > > - added README and LICENSE for proton-j > - updated the proton-c README > - fixed cmake build to not use the OPTIONAL thing for older versions > - fixed detection of LIB_SUFFIX (i.e. we won't install into lib64 on 32 > bit systems anymore)
I have a small fix for the proton binary that removes the pathname for
the binary in the usage output:
diff --git a/proton-c/src/proton.c b/proton-c/src/proton.c
index 0473fdf..0969538 100644
--- a/proton-c/src/proton.c
+++ b/proton-c/src/proton.c
@@ -27,6 +27,7 @@
#include <proton/message.h>
#include <proton/util.h>
#include <unistd.h>
+#include <libgen.h>
#include "util.h"
#include "pn_config.h"
#include <proton/codec.h>
@@ -426,7 +427,7 @@ int main(int argc, char **argv)
buffer(argc, argv);
exit(EXIT_SUCCESS);
case 'h':
- printf("Usage: %s [-h] [-c [user[:password]@]host[:port]] [-a
<address>] [-m <sasl-mech>]\n", argv[0]);
+ printf("Usage: %s [-h] [-c [user[:password]@]host[:port]] [-a
<address>] [-m <sasl-mech>]\n", basename(argv[0]));
printf("\n");
printf(" -c The connect url.\n");
printf(" -a The AMQP address.\n");
I'd like to commit this to keep the hostname from showing up in packaged
binaries.
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
pgp0LYWu3amoZ.pgp
Description: PGP signature
