~ubuntu-branches/ubuntu/precise/dspam/precise

« back to all changes in this revision

Viewing changes to debian/patches/008_where-to-find-txt-files.diff

  • Committer: Bazaar Package Importer
  • Author(s): Julien Valroff, Julien Valroff, Thomas Preud'homme
  • Date: 2011-05-08 13:43:52 UTC
  • mfrom: (1.2.1 upstream) (8.2.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20110508134352-dxjx9m6tx1cbzlhq
Tags: 3.9.1~rc1+git20110419.29261fb+dfsg-1
[ Julien Valroff ]
* New git snapshot
* Install all dspam_* tools setgid so that they can be used by standard
  users
* Add symbols file for libdspam7
* Upload to unstable

[ Thomas Preud'homme ]
* Fix permissions on dspam_stats and missing opt-{in,out} directories
  (Closes: #394443)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: txt files are installed in /etc/dspam/txt
 
2
Author: Debian DSPAM Maintainers <pkg-dspam-misc@lists.alioth.debian.org>
 
3
Forwarded: not-needed
 
4
 
 
5
--- a/src/dspam.c
 
6
+++ b/src/dspam.c
 
7
@@ -1538,7 +1538,7 @@
 
8
 
 
9
   time(&now);
 
10
 
 
11
-  snprintf(msgfile, sizeof(msgfile), "%s/txt/%s", _ds_read_attribute(agent_config, "Home"), filename);
 
12
+  snprintf(msgfile, sizeof(msgfile), "/etc/dspam/txt/%s", filename);
 
13
   f = fopen(msgfile, "r");
 
14
   if (!f) {
 
15
     LOG(LOG_ERR, ERR_IO_FILE_OPEN, filename, strerror(errno));