From 77230f5240d853785717947c9f934c0adb78870b Mon Sep 17 00:00:00 2001 From: ston1th Date: Sat, 8 Oct 2022 16:59:34 +0200 Subject: [PATCH] update dependencies --- LICENSE | 2 +- go.mod | 4 +++- go.sum | 4 ++-- godrop.go | 3 ++- lookup.go | 3 ++- lookup_test.go | 2 +- pledge.go | 3 ++- pledge_openbsd.go | 3 ++- unveil.go | 3 ++- unveil_openbsd.go | 3 ++- 10 files changed, 19 insertions(+), 11 deletions(-) diff --git a/LICENSE b/LICENSE index 2bb060c..aa39852 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 2017 Marius Schellenberger +Copyright (C) 2022 Marius Schellenberger All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/go.mod b/go.mod index a41c9af..54387f6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module git.giftfish.de/ston1th/godrop/v2 -require golang.org/x/sys v0.0.0-20181026144532-2772b66316d2 // indirect +go 1.19 + +require golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 diff --git a/go.sum b/go.sum index 36d0abd..e04231f 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -golang.org/x/sys v0.0.0-20181026144532-2772b66316d2 h1:W7CqTdBJ1CmxLKe7LptKDnBYV6PHrVLiGnoyBjaG/JQ= -golang.org/x/sys v0.0.0-20181026144532-2772b66316d2/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 h1:AzgQNqF+FKwyQ5LbVrVqOcuuFB67N47F9+htZYH0wFM= +golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/godrop.go b/godrop.go index 55f39ec..37c7e75 100644 --- a/godrop.go +++ b/godrop.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build go1.11 // +build go1.11 // Package godrop provides a simple library to drop privileges on Linux and OpenBSD. diff --git a/lookup.go b/lookup.go index 2d0e1a9..725dc82 100644 --- a/lookup.go +++ b/lookup.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build go1.11 // +build go1.11 package godrop diff --git a/lookup_test.go b/lookup_test.go index bdcf7bd..49d2a78 100644 --- a/lookup_test.go +++ b/lookup_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger package godrop diff --git a/pledge.go b/pledge.go index d0e361e..8c97aba 100644 --- a/pledge.go +++ b/pledge.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build !openbsd // +build !openbsd package godrop diff --git a/pledge_openbsd.go b/pledge_openbsd.go index 7369b03..0af656a 100644 --- a/pledge_openbsd.go +++ b/pledge_openbsd.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build openbsd // +build openbsd package godrop diff --git a/unveil.go b/unveil.go index 06c8c90..412851b 100644 --- a/unveil.go +++ b/unveil.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build !openbsd // +build !openbsd package godrop diff --git a/unveil_openbsd.go b/unveil_openbsd.go index f32d630..f1e4bbc 100644 --- a/unveil_openbsd.go +++ b/unveil_openbsd.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build openbsd // +build openbsd package godrop