X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=remote%2Fainsl%2Fainsl.go;h=2b5f8e0113700b0257768da1b6cf900808a174f5;hb=7181f7906e7fb6e73ebc0daa46975bfa9c71478f;hp=292545237ff1905b207dad7d23f208c86c67d3af;hpb=4206e0dbca82f5df7d8e534f78cb737979880916;p=safcm%2Fsafcm.git diff --git a/remote/ainsl/ainsl.go b/remote/ainsl/ainsl.go index 2925452..2b5f8e0 100644 --- a/remote/ainsl/ainsl.go +++ b/remote/ainsl/ainsl.go @@ -4,7 +4,7 @@ // // FAI: https://fai-project.org -// Copyright (C) 2021-2022 Simon Ruderich +// Copyright (C) 2021-2024 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 @@ -161,7 +161,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)