Your message dated Tue, 29 Dec 2009 11:17:20 +0000
with message-id <[email protected]>
and subject line Bug#554438: fixed in iwatch 0.2.2-1
has caused the Debian Bug report #554438,
regarding iwatch: Fails exec on files containing format chars
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
554438: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554438
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: iwatch
Version: 0.2.1-3
Severity: normal
Tags: patch

If a file being watched contains one of the formats available for 
substitution in a command, the command will not be executed. 
$ iwatch -c 'echo %f' -e close_write .
[ 4/Nov/2009 13:43:20] IN_CLOSE_WRITE ./_%f_
[ 4/Nov/2009 13:43:20] * ./_%f_ is closed
^C

Expected output is like:
$ ./iwatch -c 'echo %f' -e close_write .
[ 4/Nov/2009 13:43:29] IN_CLOSE_WRITE ./_%f_
[ 4/Nov/2009 13:43:29] * ./_%f_ is closed
[ 4/Nov/2009 13:43:29] * Command: echo ./_%f_
./_%f_
^C

Fix is attached.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages iwatch depends on:
ii  libevent-perl            1.11-1          Generic Perl event loop
ii  liblinux-inotify2-perl   1:1.1-2.1+b1    scalable directory/file change not
ii  libmail-sendmail-perl    0.79-5          Send email from a perl script
ii  libxml-simpleobject-libx 0.53-1          Simple oo representation of an XML
ii  perl-modules             5.10.0-19lenny2 Core Perl modules
ii  postfix [mail-transport- 2.5.5-1.1       High-performance mail transport ag

iwatch recommends no packages.

iwatch suggests no packages.

-- no debconf information
--- iwatch.ORIG 2009-11-04 09:06:35.000000000 +0100
+++ iwatch      2009-11-04 09:58:39.000000000 +0100
@@ -34,7 +34,7 @@
 sub mywatch;
 sub pathwatch;
 sub getMask;
-sub stringf;
+sub stringf ($%);
 $Getopt::Std::STANDARD_HELP_VERSION = 1;
 
 my %options=();
@@ -395,18 +395,19 @@
   }
 }
 
-sub stringf() {
-  my $ind;
-  my ($string,%format) = @_;
-  foreach my $key (keys %format) {
-    $ind = index $string,"%$key";
-    next if($ind == -1);
-    substr($string,$ind,2) = &{$format{$key}};
-    $string = stringf($string,%format);
-  }
+sub stringf($%) { 
+  my ($string, %format) = @_; 
+  my $re = join("|", map { "%".quotemeta } keys(%format));
+  $string =~ s/$re/_stringf($&, \%format)/ge; 
   $string;
 }
 
+sub _stringf {
+  my ($s,$f) = @_;
+  $s =~ s/^\%//;
+  &{$f->{$s}};
+}
+
 sub Usage {
   VERSION_MESSAGE();
   HELP_MESSAGE();

--- End Message ---
--- Begin Message ---
Source: iwatch
Source-Version: 0.2.2-1

We believe that the bug you reported is fixed in the latest version of
iwatch, which is due to be installed in the Debian FTP archive:

iwatch_0.2.2-1.diff.gz
  to main/i/iwatch/iwatch_0.2.2-1.diff.gz
iwatch_0.2.2-1.dsc
  to main/i/iwatch/iwatch_0.2.2-1.dsc
iwatch_0.2.2-1_all.deb
  to main/i/iwatch/iwatch_0.2.2-1_all.deb
iwatch_0.2.2.orig.tar.gz
  to main/i/iwatch/iwatch_0.2.2.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Prokop <[email protected]> (supplier of updated iwatch package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 29 Dec 2009 11:50:55 +0100
Source: iwatch
Binary: iwatch
Architecture: source all
Version: 0.2.2-1
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <[email protected]>
Changed-By: Michael Prokop <[email protected]>
Description: 
 iwatch     - realtime filesystem monitoring program using inotify
Closes: 554438
Changes: 
 iwatch (0.2.2-1) unstable; urgency=low
 .
   * New upstream release.
     - Addresses the "Fails exec on files containing format chars"
       issue. [Closes: #554438]
   * Bump Standards-Version to 3.8.3.
   * Update debian/copyright to make lintian happy.
   * Fix lintian's hyphen-used-as-minus-sign issue in manpage (thanks
     for the hint, Rhonda).
   * Make package architecture independent.
   * Use my Debian mail address as maintainer.
Checksums-Sha1: 
 6abfae3fd1716e2b732393445c4041646123ef93 1092 iwatch_0.2.2-1.dsc
 862519397b4e1f1910a0aa5d865213447c606b54 16251 iwatch_0.2.2.orig.tar.gz
 37115831b5d1562580380ec54e981e5b62d4dbd5 6304 iwatch_0.2.2-1.diff.gz
 5e88058a857ceaa2f2dcca0b17577a074ab433d5 19792 iwatch_0.2.2-1_all.deb
Checksums-Sha256: 
 a50c81b589813ac398fc7f964a2f62a3c1c2642f64e5b8e80b957d68baebddaf 1092 
iwatch_0.2.2-1.dsc
 cd4d5219241ab44a79719a23ed07f5dd14ec9dba0698ed28f187cd3bcfbd99b0 16251 
iwatch_0.2.2.orig.tar.gz
 98a8f9060865596fd667c1c993d0a8d83035bd0e2d7d5e457ab3f55e76199dfa 6304 
iwatch_0.2.2-1.diff.gz
 aaaff66493a319b51b3d3e4614ae726ed9433cf359f50dd754bc529d54132e7c 19792 
iwatch_0.2.2-1_all.deb
Files: 
 cb9d5363bed8527a37829055e6a1f48f 1092 admin optional iwatch_0.2.2-1.dsc
 d5ccfdceb543805ab54d6327d3bb39e3 16251 admin optional iwatch_0.2.2.orig.tar.gz
 dfd3820d15376cae5b61e198c4fa0fdb 6304 admin optional iwatch_0.2.2-1.diff.gz
 f52a3597b71c682a6de772b521237fd4 19792 admin optional iwatch_0.2.2-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLOeSB2N9T+zficugRAi6IAJ0UNrUBGJO2oSq4vhwghrqK+2JOOgCeOdjJ
bb/Kczru7Io3Yh3bTv0apns=
=jtIK
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to