PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/network/afpfs-ng/patches/afpfs-ng-0.8.1-11-fix-stat.patch

http://github.com/OpenELEC/OpenELEC.tv
Patch | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | 2520ba3a39a97d2d29ee65767a1007ec MD5 | raw file
 1--- afpfs-ng-0.8.1/lib/lowlevel.c	2011-10-01 20:36:55.000000000 +0200
 2+++ afpfs-ng-0.8.1/lib/lowlevel.c	2011-10-01 20:46:00.000000000 +0200
 3@@ -579,7 +579,7 @@
 4 		return -EIO;
 5 	}
 6 
 7-	if (volume->server->using_version->av_number>=30)
 8+	if (volume->server->using_version->av_number>=30 && fp.unixprivs.permissions != 0)
 9 		stbuf->st_mode |= fp.unixprivs.permissions;
10 	else
11 		set_nonunix_perms(&stbuf->st_mode,&fp);