瀏覽代碼

Fixed directory permissions for the zip download router

If the archives/ directory is created with 0655, it results in a permission error.
Jan Oliver Oelerich 10 年之前
父節點
當前提交
6fe43eb8d4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routers/repo/download.go

+ 1 - 1
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
 		}