Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34847

Unquoted argument in {{logger}} call leads to invalid argument warnings

    XMLWordPrintable

Details

    Description

      At times the wsrep_sst_mariabackup script will generate log messages like:

      {noscript}
      Aug 30 15:27:01 node-2 -wsrep-sst-joiner[4096]: logger: invalid option – 'r'
      Aug 30 15:27:01 node-2 -wsrep-sst-joiner[4096]: Try 'logger --help' for more information.{noscript}

      This is due to the 2nd logger call here:

                  wsrep_log_info "Contents of datadir:"
                  wsrep_log_info $(ls -l "$dir/"*)
      

      which is missing quotes around the subshell argument.
      As the "ls l" produces tends to produce output starting with -rw-rw-rw the missing quotes lead to "-r" being misinterpreted as a command line option to the logger tool

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              hholzgra Hartmut Holzgraefe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.