[Pkg-wmaker-commits] [wmbiff] 28/38: make #'s comments only if preceded by whitespace or at the beginning of the line
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:03:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_16
in repository wmbiff.
commit 8f57f5fff1c6f00cf57df3aa6a80a93e8f2cd450
Author: bluehal <bluehal>
Date: Thu Jul 3 01:03:27 2003 +0000
make #'s comments only if preceded by whitespace or at the beginning of the line
---
NEWS | 12 +++++++++++-
wmbiff/wmbiff.c | 8 ++++++--
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/NEWS b/NEWS
index ed80c14..49aa268 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,16 @@ Release Notes
Release 0.4.16 -
* Check TLS certificates. See wmbiffrc(5) for
details on the certfile option.
+ * #'s are now only comments in .wmbiffrc at the
+ beginning of lines or following whitespace,
+ allowing #'s in (most) passwords.
+ * AppleScript examples for driving Apple's Mail
+ application in sample.wmbiffrc
+ * Special mailbox action 'msglst' brings up a
+ transient window showing message headers from IMAP
+ and program output for shell methods. This is
+ intended to be faster than starting up a new
+ mail program or re-executing a script.
Release 0.4.15 - Mar 30, 2003
* Frobnicate internally stored passwords, partially
@@ -417,4 +427,4 @@ Release 0.1 - Wed, 17 Nov 1999 00:00:00 +0000
* Initial release by Gennady Belyakov <gb at ccat.elect.ru>.
-$Id: NEWS,v 1.43 2003/04/07 09:59:01 bluehal Exp $
+$Id: NEWS,v 1.44 2003/07/03 01:03:27 bluehal Exp $
diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index 9bb54c2..cd95265 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -1,4 +1,4 @@
-/* $Id: wmbiff.c,v 1.56 2003/07/03 00:53:32 bluehal Exp $ */
+/* $Id: wmbiff.c,v 1.57 2003/07/03 01:03:27 bluehal Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -161,7 +161,11 @@ static int ReadLine(FILE * fp, /*@out@ */ char *setting,
buf[len - 1] = '\0'; /* strip linefeed */
}
for (p = (char *) buf; *p != '#' && *p; p++);
- *p = '\0'; /* Strip comments */
+ if (p == buf || isspace(*(p - 1))) {
+ /* Strip comments at beginning of line, or after whitespace.
+ a kludgy way of avoiding problems with #'s in passwords. */
+ *p = '\0';
+ }
if (!(p = strtok(buf, "=")))
return -1;
if (!(q = strtok(NULL, "\n")))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list