Do not create profile/trace files if they are not set.

Fixes #12705

PiperOrigin-RevId: 882207103
This commit is contained in:
Ayush Ranjan
2026-03-11 14:53:12 -07:00
committed by gVisor bot
parent 2b4533054f
commit f16a98da14
+3
View File
@@ -257,6 +257,9 @@ func DonateProfileFDs(conf *config.Config, donations *donation.Agency, isGofer b
}
func updatePath(path string, suffix string, isGofer bool) string {
if path == "" {
return path
}
if strings.HasSuffix(path, "/") {
path += "runsc-profile." + suffix
}