[rear-devel] [rear/rear] 12586f: Append to CLONE_USERS and CLONE_GROUPS by using +=

Johannes Meixner noreply at github.com
Tue Sep 3 22:25:54 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 12586ff5cad9cf5b59886f3d6c12ca07250b4583
      https://github.com/rear/rear/commit/12586ff5cad9cf5b59886f3d6c12ca07250b4583
  Author: Pavel Cahyna <pcahyna at redhat.com>
  Date:   2019-09-03 (Tue, 03 Sep 2019)

  Changed paths:
    M usr/share/rear/conf/GNU/Linux.conf

  Log Message:
  -----------
  Append to CLONE_USERS and CLONE_GROUPS by using +=

- instead of expanding the previous value to an empty element, which then
causes problems later (introduced in #699 to pacify set -ue in bash 3).

The fix is still compatible with bash 3 and set -ue.

XXX similar changes should be applied to other numerous array operations found
in this file.

Fixes #2220


  Commit: 0d7873a095faddda7683945caf141d0bfa618907
      https://github.com/rear/rear/commit/0d7873a095faddda7683945caf141d0bfa618907
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2019-09-03 (Tue, 03 Sep 2019)

  Changed paths:
    M usr/share/rear/conf/GNU/Linux.conf

  Log Message:
  -----------
  Merge pull request #2223 from pcahyna/emptyuser

Append to CLONE_USERS and CLONE_GROUPS arrays by using +=
see https://github.com/rear/rear/issues/2220


Compare: https://github.com/rear/rear/compare/36cf20e2d8bc...0d7873a095fa


More information about the rear-devel mailing list