Your message dated Fri, 15 Apr 2016 09:59:39 +1000
with message-id <162303484.Rab39s8GEy@deblab>
and subject line Re: Bug#821012: etcd: Incorrect use of readlink in sysvinit 
script
has caused the Debian Bug report #821012,
regarding etcd: Incorrect use of readlink in sysvinit script
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.)


-- 
821012: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821012
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: etcd
Version: 2.2.5+dfsg-1
Severity: important
Tags: newcomer

Dear Maintainer,

The copy of sysvinit script in the etc package tries to get the name of the 
package using:

NAME=$(basename $(readlink $0))

Unfortunately, this fails due to the incorrect invocation of readlink. This 
should most likely read:

NAME=$(basename $(readlink -f $0))

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages etcd depends on:
ii  adduser              3.114
ii  init-system-helpers  1.29
ii  libc6                2.22-5
ii  pipexec              2.5.4-1

etcd recommends no packages.

etcd suggests no packages.

-- Configuration Files:
/etc/init.d/etcd changed:
NAME=$(basename $(readlink -f $0))
DAEMON=/usr/bin/$NAME
DAEMON_USER=$NAME
PIDFILE=/var/run/$NAME.pid
DAEMON_ARGS=""
[ -x "$DAEMON" ] || exit 0
set -a
ETCD_NAME="$(hostname)"
ETCD_DATA_DIR="/var/lib/etcd/default"
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
set +a
RETRY=TERM/30/KILL/5
[ -f /etc/default/rcS ] && . /etc/default/rcS
[ -f /lib/lsb/init-functions ] || exit 1
. /lib/lsb/init-functions
_ev_ () {
  local rv_=$?
  [ "$VERBOSE" = "no" ] || eval $@
  return $rv_
}
case "$1" in
    start)
        _ev_ log_action_begin_msg \"Starting $NAME\"
        if R=$($0 status); then
            _ev_ log_action_end_msg 0 \"$R\"
        else
            R=$(start-stop-daemon --start --pidfile $PIDFILE --make-pidfile 
--background \
                --chuid $DAEMON_USER --startas /usr/bin/pipexec -- -k \
              -- [ D $DAEMON $DAEMON_ARGS ] [ L /usr/bin/logger --tag $NAME ] 
'{D:1>L:0}' '{D:2>L:0}')
            sleep 0.1
            $0 status >>/dev/null
            _ev_ log_action_end_msg $? \"$R\"
        fi
    ;;
    debug)
        start-stop-daemon --start --exec $DAEMON --chuid $DAEMON_USER -- 
$DAEMON_ARGS
    ;;
    stop)
        _ev_ log_action_begin_msg \"Stopping $NAME\"
        R=$(start-stop-daemon --stop --oknodo --user $DAEMON_USER --pidfile 
$PIDFILE --remove-pidfile --retry=$RETRY 2>&1)
        _ev_ log_action_end_msg $? \"$R\"
    ;;
    status)
        ## return status 0 if process is running.
        status_of_proc -p $PIDFILE "$DAEMON" "$NAME"
    ;;
    restart|force-reload)
        $0 stop
        $0 start
    ;;
    *)
        echo "Usage: /etc/init.d/$NAME 
{start|stop|restart|force-reload|status}" >&2
        exit 1
    ;;
esac


-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 2.3.1+dfsg-1

On Thursday, 14 April 2016 4:13:56 PM AEST Niall Donegan wrote:
> NAME=$(basename $(readlink $0))
> 
> Unfortunately, this fails due to the incorrect invocation of readlink. This
> should most likely read:
> 
> NAME=$(basename $(readlink -f $0))

Thanks for reporting this problem. It was already fixed in etcd-2.3.1+dfsg-1.

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.

-- 
Regards,
 Dmitry Smirnov.

---

If liberty means anything at all, it means the right to tell people what
they do not want to hear.
        -- George Orwell

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply via email to