[lxc-devel] [lxd/master] Read file perms from Windows FS (fixes #3363)
techtonik on Github
lxc-bot at linuxcontainers.org
Wed May 31 05:58:55 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170531/cfcc9b9c/attachment.bin>
-------------- next part --------------
From d0319a800dccc15034f940d539c5b0b940f40664 Mon Sep 17 00:00:00 2001
From: anatoly techtonik <techtonik at gmail.com>
Date: Wed, 31 May 2017 08:57:30 +0300
Subject: [PATCH] Read file perms from Windows FS (fixes #3363)
---
shared/util_windows.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shared/util_windows.go b/shared/util_windows.go
index 7f91ba0fd..7a480f5bc 100644
--- a/shared/util_windows.go
+++ b/shared/util_windows.go
@@ -7,5 +7,5 @@ import (
)
func GetOwnerMode(fInfo os.FileInfo) (os.FileMode, int, int) {
- return os.FileMode(0), -1, -1
+ return fInfo.Mode(), -1, -1
}
More information about the lxc-devel
mailing list