Kaynağa Gözat

Fix test inversion in start-stop-daemon, when checking the pid given in a
pid file. Thanks Thomas Morin <thomas.morin@enst-bretagne.fr>.

Adam Heath 24 yıl önce
ebeveyn
işleme
45790ae719
3 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. 6 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 1
      utils/start-stop-daemon.c

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+Thu Jul 11 22:19:12 CDT 2002 Adam Heath <doogie@debian.org>
+
+  * utils/start-stop-daemon.c: Fix test inversion in start-stop-daemon,
+    when checking the pid given in a pid file.  Thanks Thomas Morin
+    <thomas.morin@enst-bretagne.fr>.
+
 Sun Jul  7 14:54:44 CDT 2002 Adam Heath <doogie@debian.org>
 Sun Jul  7 14:54:44 CDT 2002 Adam Heath <doogie@debian.org>
 
 
   * debian/rules: Fix install location of /usr/lib/dpkg/methods.
   * debian/rules: Fix install location of /usr/lib/dpkg/methods.

+ 3 - 0
debian/changelog

@@ -3,6 +3,9 @@ dpkg (1.10.3) unstable; urgency=low
   * Move dselect.cfg to dselect package. Closes: Bug#152132
   * Move dselect.cfg to dselect package. Closes: Bug#152132
   * Install methods into /usr/lib/dpkg/methods, not /usr/lib/dpkg.  Closes:
   * Install methods into /usr/lib/dpkg/methods, not /usr/lib/dpkg.  Closes:
     #152161.
     #152161.
+  * Fix test inversion in start-stop-daemon, when checking the pid given in
+    a pid file.  Thanks Thomas Morin <thomas.morin@enst-bretagne.fr>.
+    Closes: #152270.
 
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 
 

+ 1 - 1
utils/start-stop-daemon.c

@@ -686,7 +686,7 @@ check(pid_t pid)
 		return;
 		return;
 	if (cmdname && !pid_is_cmd(pid, cmdname))
 	if (cmdname && !pid_is_cmd(pid, cmdname))
 		return;
 		return;
-	if (start && pid_is_running(pid))
+	if (start && !pid_is_running(pid))
 		return;
 		return;
 	push(&found, pid);
 	push(&found, pid);
 }
 }