mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43:34 +00:00
cleanup: address golangci 'gosec' issues
The golangci 'gosec' linter complains about permissions that could be more secure. These have been modified or annotated on. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
5941371c4b
commit
4ffa1d6c89
@ -432,6 +432,7 @@ func getBackingSnapshotRoot(
|
||||
|
||||
snapshotsBase := path.Join(stagingTargetPath, ".snap")
|
||||
|
||||
//nolint:gosec // intended use of a variable for the path
|
||||
dir, err := os.Open(snapshotsBase)
|
||||
if err != nil {
|
||||
log.ErrorLog(ctx, "failed to open %s when searching for snapshot root: %v", snapshotsBase, err)
|
||||
|
Reference in New Issue
Block a user