summaryrefslogtreecommitdiff
path: root/www/gitlab-pages/files/patch-internal_jail_jail.go
blob: 3fcbf49b23db4624e8781059040b1092913e7b24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- internal/jail/jail.go.orig	2019-09-29 20:26:56 UTC
+++ internal/jail/jail.go
@@ -228,7 +228,7 @@ func handleFile(dest string, src pathAndMode) error {
 func createCharacterDevice(dest string, src pathAndMode) error {
 	unixMode := uint32(src.mode.Perm() | syscall.S_IFCHR)
 
-	return unix.Mknod(dest, unixMode, src.rdev)
+	return unix.Mknod(dest, unixMode, uint64(src.rdev))
 }
 
 func copyFile(dest, src string, perm os.FileMode) error {