From 914c76a80128ee889013486feb6c05ab4589d35c Mon Sep 17 00:00:00 2001 From: Stefan Husch Date: Sat, 14 Jul 2018 03:37:02 +0200 Subject: [PATCH] Implement lock.Open() to fix #5642 (#6150) --- pkg/lock/lock_solaris.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/lock/lock_solaris.go b/pkg/lock/lock_solaris.go index ba1f61816..8e467b796 100644 --- a/pkg/lock/lock_solaris.go +++ b/pkg/lock/lock_solaris.go @@ -98,3 +98,8 @@ func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, er func LockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { return lockedOpenFile(path, flag, perm, syscall.F_SETLKW) } + +// Open - Call os.OpenFile +func Open(path string, flag int, perm os.FileMode) (*os.File, error) { + return os.OpenFile(path, flag, perm) +}