extended the VERSION command
authorChristian Thaeter <ct@pipapo.org>
Tue, 16 Oct 2007 18:49:14 +0000 (20:49 +0200)
committerChristian Thaeter <ct@pipapo.org>
Tue, 16 Oct 2007 18:49:14 +0000 (20:49 +0200)
src/rxpd.h
src/rxpd_connection_cmd.c

index 24ee56d..844efae 100644 (file)
@@ -62,7 +62,7 @@ enum rxpd_cmd_e {RXPD_COMMANDS};
  * characters which are absolutely not allowed in rule filenames
  * for finer control use policies
  */
-#define RXPD_FILE_ILG_CHARS "/: \t\n*?"
+#define RXPD_FILE_ILG_CHARS "/: \t\n*?\\"
 
 struct rxpd_base;
 struct rxpd_file;
index ab6f72a..807d955 100644 (file)
@@ -393,7 +393,13 @@ rxpd_connection_cmd_VERSION (int fd, short event, void* ptr)
   (void) fd;
   (void) event;
   struct rxpd_connection* self = (struct rxpd_connection*) ptr;
-  rxpd_buffer_printf (&self->out, PACKAGE_STRING "\n");
+  rxpd_buffer_printf (&self->out, PACKAGE_STRING "\n#\n"
+                      "# Copyright (C)\n"
+                      "#   2007,               Christian Thaeter <ct@pipapo.org>\n#\n"
+                      "# This is free software.  You may redistribute copies of it under the terms of\n"
+                      "# the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.\n"
+                      "# There is NO WARRANTY, to the extent permitted by law.\n#\n"
+                      "# http://www.pipapo.org/pipawiki/RegexPolicyDaemon\n");
   rxpd_connection_delete (self);
 }