[2736] in BarnOwl Developers
[PATCH] webzephyr principal changed
daemon@ATHENA.MIT.EDU (=?UTF-8?q?Alejandro=20R=2E=20Sede=)
Thu Nov 4 16:23:50 2010
From: =?UTF-8?q?Alejandro=20R=2E=20Sede=C3=B1o?= <asedeno@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Thu, 4 Nov 2010 16:23:47 -0400
Signed-off-by: Alejandro R. SedeƱo <asedeno@mit.edu>
---
commands.c | 2 +-
owl.h | 2 +-
perl/lib/BarnOwl/Message/Zephyr.pm | 2 +-
zephyr.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/commands.c b/commands.c
index 5cbe262..f1c246a 100644
--- a/commands.c
+++ b/commands.c
@@ -1021,7 +1021,7 @@ const owl_cmd commands_to_init[]
"-r is used, the search will be performed backwards.\n\n"
"SEE ALSO: popless:search"),
- OWLCMD_ALIAS("webzephyr", "zwrite daemon.webzephyr -c webzephyr -i"),
+ OWLCMD_ALIAS("webzephyr", "zwrite " OWL_WEBZEPHYR_PRINCIPAL " -c " OWL_WEBZEPHYR_CLASS " -i"),
/* This line MUST be last! */
{ NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
diff --git a/owl.h b/owl.h
index 3685a79..b67cd1a 100644
--- a/owl.h
+++ b/owl.h
@@ -197,7 +197,7 @@ typedef void HV;
#define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to: "
-#define OWL_WEBZEPHYR_PRINCIPAL "daemon.webzephyr"
+#define OWL_WEBZEPHYR_PRINCIPAL "daemon/webzephyr.mit.edu"
#define OWL_WEBZEPHYR_CLASS "webzephyr"
#define OWL_WEBZEPHYR_OPCODE "webzephyr"
diff --git a/perl/lib/BarnOwl/Message/Zephyr.pm b/perl/lib/BarnOwl/Message/Zephyr.pm
index b2b4ad5..83fabba 100644
--- a/perl/lib/BarnOwl/Message/Zephyr.pm
+++ b/perl/lib/BarnOwl/Message/Zephyr.pm
@@ -3,7 +3,7 @@ use warnings;
package BarnOwl::Message::Zephyr;
-use constant WEBZEPHYR_PRINCIPAL => "daemon.webzephyr";
+use constant WEBZEPHYR_PRINCIPAL => "daemon/webzephyr.mit.edu";
use constant WEBZEPHYR_CLASS => "webzephyr";
use constant WEBZEPHYR_OPCODE => "webzephyr";
diff --git a/zephyr.c b/zephyr.c
index 1121caf..c50ee66 100644
--- a/zephyr.c
+++ b/zephyr.c
@@ -1229,8 +1229,8 @@ char *long_zuser(const char *in)
}
/* strip out the instance from a zsender's principal. Preserves the
- * realm if present. daemon.webzephyr is a special case. The
- * caller must free the return
+ * realm if present. daemon/webzephyr.mit.edu is a special case.
+ * The caller must free the return.
*/
char *owl_zephyr_smartstripped_user(const char *in)
{
--
1.7.3.2