//
// 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
}
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)