Bug#691422: init-functions: order of arguments is not context-free

Arno Töll <[email protected]>
Newsgroups gmane.linux.debian.devel.lsb
Message-ID <[email protected]>
Package: lsb-base
Version: 4.1+Debian7
Severity: normal

As spotted in #691365, it turns out that the pidofproc function provided in
/lib/lsb/init-functions is not context free. Calling

    pidofproc "$DAEMON" -p $PIDFILE"

in contrast to

    pidofproc -p $PIDFILE "$DAEMON"


yields different results if the file in $PIDFILE does not exist. This yields to a
non-context-freeness which is probably not what the user calling this function
expects.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.