[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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


Reply to: