mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
Potential fix for code scanning alert no. 308: Log entries created from user input
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1277,13 +1277,13 @@ func (ds *DataStore) rootWriteFileSync(absPath string, data []byte, perm os.File
|
||||
func (ds *DataStore) rootSyncDir(absDir string) {
|
||||
d, err := ds.rootOpen(absDir)
|
||||
if err != nil {
|
||||
log.Printf("[Datastore] rootSyncDir: open %s failed (best-effort): %v", sanitizeLog(absDir), err)
|
||||
log.Printf("[Datastore] rootSyncDir: open %s failed (best-effort): %s", sanitizeLog(absDir), sanitizeErr(err))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if serr := d.Sync(); serr != nil {
|
||||
log.Printf("[Datastore] rootSyncDir: fsync %s failed (best-effort): %v", sanitizeLog(absDir), serr)
|
||||
log.Printf("[Datastore] rootSyncDir: fsync %s failed (best-effort): %s", sanitizeLog(absDir), sanitizeErr(serr))
|
||||
}
|
||||
|
||||
_ = d.Close()
|
||||
|
||||
Reference in New Issue
Block a user