The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/329

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===

From 07cc0ab394aa874a49c514ebbe609ca7e34c99b2 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Mon, 11 May 2020 20:26:10 +0200
Subject: [PATCH] generators/utils: Fix condition

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 generators/utils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generators/utils.go b/generators/utils.go
index 79c3d92..853b6c1 100644
--- a/generators/utils.go
+++ b/generators/utils.go
@@ -37,7 +37,7 @@ func updateFileAccess(file *os.File, defFile 
shared.DefinitionFile) error {
        }
 
        // Change uid if needed
-       if defFile.Mode != "" {
+       if defFile.UID != "" {
                uid, err := strconv.Atoi(defFile.UID)
                if err != nil {
                        return errors.Wrap(err, "Failed to parse UID")
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to