[lxc-devel] [lxc/lxc] 7d84e2: file_utils: fix config file parsing

Stéphane Graber noreply at github.com
Tue Nov 17 23:23:05 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 7d84e2cd65e120146001fa19127f61af0e0d7306
      https://github.com/lxc/lxc/commit/7d84e2cd65e120146001fa19127f61af0e0d7306
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M src/lxc/file_utils.c

  Log Message:
  -----------
  file_utils: fix config file parsing

We accidently used the "bytes_to_write" variable after we've written all the
bytes at which point it is guaranteed to be 0. Let's use the "bytes_read"
variable instead.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 2cc8d550f8be1501fe6373afc191bc3968ed7730
      https://github.com/lxc/lxc/commit/2cc8d550f8be1501fe6373afc191bc3968ed7730
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M src/lxc/file_utils.c

  Log Message:
  -----------
  Merge pull request #3582 from brauner/2020-11-17/bugfixes

file_utils: fix config file parsing


Compare: https://github.com/lxc/lxc/compare/59c6b0661162...2cc8d550f8be


More information about the lxc-devel mailing list