container: export overlay escape

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-14 23:44:11 +09:00
parent 0e543a58b3
commit ba3227bf15
4 changed files with 8 additions and 8 deletions

View File

@@ -214,8 +214,8 @@ func parentPerm(perm os.FileMode) os.FileMode {
return os.FileMode(pperm)
}
// escapeOverlayDataSegment escapes a string for formatting into the data argument of an overlay mount call.
func escapeOverlayDataSegment(s string) string {
// EscapeOverlayDataSegment escapes a string for formatting into the data argument of an overlay mount call.
func EscapeOverlayDataSegment(s string) string {
if s == zeroString {
return zeroString
}