]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/ainsl/ainsl.go
Update copyright years
[safcm/safcm.git] / remote / ainsl / ainsl.go
index 8b4aa883060aad5bcd9a77d3b047259695f53bc3..2b5f8e0113700b0257768da1b6cf900808a174f5 100644 (file)
@@ -4,7 +4,7 @@
 //
 // FAI: https://fai-project.org
 
-// Copyright (C) 2021-2023  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)