[Bug 435132] Re: backup-manager: syntax error when env-variable content long

schnittchen thomas.stratmann at rub.de
Wed Sep 23 09:22:46 UTC 2009


Upon invocation from cron, backup-manager has some HAL_... environment
variables containing much data.

>From /usr/share/backup-manager/sanitize.sh, around line 97:

function replace_deprecated_booleans()
{

    for line in $(env)
    do
        key=$(echo "$line" | awk -F '=' '{print $1}')
        value=$(echo "$line" | awk -F '=' '{print $2}')
        #...parse, warn and modify...
    done

Now set some environment variable inside bash to some very long value
and check the export of "env": The value is not quoted, but broken in
several lines. This breaks the above construct.

Better would be to use "export -p" or to just loop through known BM_...
variables.

-- 
backup-manager: syntax error when env-variable content long
https://bugs.launchpad.net/bugs/435132
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list