X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=remote%2Fainsl%2Fainsl.go;h=6437a5a08a5745237731325e084af4dcfa3be5f9;hb=refs%2Fheads%2Fmaster;hp=8b4aa883060aad5bcd9a77d3b047259695f53bc3;hpb=d109a6151f48fc9e322bacbd3cc5e4f00eade713;p=safcm%2Fsafcm.git diff --git a/remote/ainsl/ainsl.go b/remote/ainsl/ainsl.go index 8b4aa88..6437a5a 100644 --- a/remote/ainsl/ainsl.go +++ b/remote/ainsl/ainsl.go @@ -4,20 +4,8 @@ // // FAI: https://fai-project.org -// Copyright (C) 2021-2023 Simon Ruderich -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2021-2024 Simon Ruderich package ainsl @@ -161,7 +149,7 @@ func handle(path string, line string, create bool) ([]string, error) { } err = unix.Renameat(parentFd, tmpBase, parentFd, baseName) if err != nil { - unix.Unlinkat(parentFd, tmpBase, 0) //nolint:errcheck + unix.Unlinkat(parentFd, tmpBase, 0 /* flags */) //nolint:errcheck return nil, err } err = unix.Fsync(parentFd)