[lxc-devel] [lxd/master] lxd/main_nsexec: Fix type of length in file_to_buf

stgraber on Github lxc-bot at linuxcontainers.org
Wed Feb 27 10:25:53 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190227/724289c5/attachment-0001.bin>
-------------- next part --------------
From f052dfdb95268418e0c69a21d1bcde2954d9a12c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 27 Feb 2019 11:25:33 +0100
Subject: [PATCH] lxd/main_nsexec: Fix type of length in file_to_buf
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/main_nsexec.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/main_nsexec.go b/lxd/main_nsexec.go
index 3379e5d783..18e38d1f33 100644
--- a/lxd/main_nsexec.go
+++ b/lxd/main_nsexec.go
@@ -210,7 +210,7 @@ again:
 	return ret;
 }
 
-static char *file_to_buf(char *path, size_t *length)
+static char *file_to_buf(char *path, ssize_t *length)
 {
 	__do_close_prot_errno int fd = -EBADF;
 	__do_free char *copy = NULL;


More information about the lxc-devel mailing list