From 473f8f74668bf216f1279186226d221644596bcc Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Mon, 28 Mar 2022 19:39:21 +0800
Subject: [PATCH] create directories with 0755 mode

---
 cmd/podman/main.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index d4c8454..b2e245a 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -156,6 +156,9 @@ func main() {
 			logrus.Info("running as rootless")
 		}
 
+		//Be sure we can create directories with 0755 mode.
+		syscall.Umask(0022)
+
 		if logLevel == "debug" {
 			debug = true
 
-- 
2.27.0

