Package: lockfile-progs Version: 0.1.13 Severity: important Tags: patch Whenever I try to use mail-lock or mail-unlock the commands print the usage information. E.g.
$ mail-lock usage: mail-lock [--use-pid] [--retry retry-count] This issue only appeared after upgrading to squeeze and it also exists in unstable. The issue seems to be that there is a check for lockfile_add_dot_lock_to_name in case of mail commands. IMO this is non-sense and should be logically opposite. -- System Information: Debian Release: squeeze/sid APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.27.7-bender Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages lockfile-progs depends on: ii libc6 2.10.2-2 GNU C Library: Shared libraries ii liblockfile1 1.08-3 NFS-safe locking library, includes lockfile-progs recommends no packages. lockfile-progs suggests no packages. -- no debconf information
--- lockfile-progs.c.orig 2010-01-03 17:44:10.000000000 +0100 +++ lockfile-progs.c 2010-01-03 17:44:31.000000000 +0100 @@ -231,7 +231,7 @@ if(touchlock_oneshot && (strcmp(action, "touch") != 0)) usage_error = 1; - if(mail_cmd_p && lockfile_add_dot_lock_to_name) + if(mail_cmd_p && !lockfile_add_dot_lock_to_name) usage_error = 1; if(usage_error)