X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=remote%2Fainsl%2Fainsl.go;h=e4699b8990c82f19570898ccc19d3b20bc49029c;hb=9506effbe395b9be30ba2b34702c51478e8043e4;hp=8a65d4d98f54667d85c3043658be0346bad9706d;hpb=ba1a93368ed95d7160062f60fb8b579bc178d3aa;p=safcm%2Fsafcm.git diff --git a/remote/ainsl/ainsl.go b/remote/ainsl/ainsl.go index 8a65d4d..e4699b8 100644 --- a/remote/ainsl/ainsl.go +++ b/remote/ainsl/ainsl.go @@ -4,7 +4,7 @@ // // FAI: https://fai-project.org -// Copyright (C) 2021 Simon Ruderich +// 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 @@ -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)