From 6fe43eb8d4d7337024ca3001214c19fe1ba2c33d Mon Sep 17 00:00:00 2001 From: Jan Oliver Oelerich Date: Sun, 1 Jun 2014 15:22:13 +0200 Subject: [PATCH] Fixed directory permissions for the zip download router If the archives/ directory is created with 0655, it results in a permission error. --- routers/repo/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/download.go b/routers/repo/download.go index ac9c390b1f..7e20b0e095 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -58,7 +58,7 @@ func ZipDownload(ctx *middleware.Context, params martini.Params) { commitId := ctx.Repo.CommitId archivesPath := filepath.Join(ctx.Repo.GitRepo.Path, "archives/zip") if !com.IsDir(archivesPath) { - if err := os.MkdirAll(archivesPath, 0655); err != nil { + if err := os.MkdirAll(archivesPath, 0755); err != nil { ctx.Handle(500, "ZipDownload -> os.Mkdir(archivesPath)", err) return }