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

Bug#895136: debian-policy: §9.1.2 - Contains example that is misleadingly different than what the policy mandates



Niels Thykier:
> """
> if [ ! -e /usr/local/share/emacs ]; then
>     if mkdir /usr/local/share/emacs 2>/dev/null; then
>         if test -e /etc/staff-group-for-usr-local ; then
>             if chown root:staff /usr/local/share/emacs; then
>                 chmod 2775 /usr/local/share/emacs || true
>             fi
>         elif chown root:staff /usr/local/share/emacs; then
>             chmod 2775 /usr/local/share/emacs || true
>         fi
>     fi
> fi
> """

Bleh, I wanted:

"""
if [ ! -e /usr/local/share/emacs ]; then
    if mkdir /usr/local/share/emacs 2>/dev/null; then
        if test -e /etc/staff-group-for-usr-local ; then
            if chown root:staff /usr/local/share/emacs; then
                chmod 2775 /usr/local/share/emacs || true
            fi
        elif chown root:root /usr/local/share/emacs; then
            chmod 0755 /usr/local/share/emacs || true
        fi
    fi
fi
"""

Apologies for the confusion.

Thanks,
~Niels


Reply to: