当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : zip文件也支持POSIX权限吗?
帖子发表于 : 2012-03-03 11:52 
头像

注册: 2008-07-24 11:33
帖子: 4793
地址: 郑州
送出感谢: 4
接收感谢: 92
今天写了个firefox插件的PKGBUILD,改别人的。插件解压到系统级别的插件文件夹后,fx死活识别不了。折腾半天发现是权限问题。

自己编译的XPI,用unzip解压后是这个效果:
代码:
[email protected] shm $ unzip abp.xpi -oqd test
[email protected] shm $ ls test -Al
总用量 44
drwxr-xr-x 2 cuihao cuihao    60  3月  3 11:47 chrome/
-rw------- 1 cuihao cuihao  5412  3月  3 11:28 chrome.manifest
drwxr-xr-x 2 cuihao cuihao    60  3月  3 11:47 components/
drwxr-xr-x 3 cuihao cuihao    80  3月  3 11:47 defaults/
-rw------- 1 cuihao cuihao  5727  3月  3 11:28 icon64.png
-rw------- 1 cuihao cuihao  3387  3月  3 11:28 icon.png
-rw------- 1 cuihao cuihao 21975  3月  3 11:28 install.rdf
drwxr-xr-x 2 cuihao cuihao   480  3月  3 11:47 modules/

可以看出默认权限是600。

随便找个现成的XPI解压,效果如下:
代码:
[email protected] /tmp $ unzip flashblock-1.5.15.xpi -oqd zip1
[email protected] /tmp $ ls zip1 -Al
总用量 8
drwxr-xr-x 2 cuihao cuihao   60  3月  3 11:51 chrome/
-rw-r--r-- 1 cuihao cuihao 3849  5月 16 2011 chrome.manifest
drwxr-xr-x 3 cuihao cuihao   60  7月 23 2010 defaults/
-rw-r--r-- 1 cuihao cuihao 3009  7月  5 2011 install.rdf

默认权限644。

:em20 zip文件也支持POSIX权限吗?


_________________
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~


页首
 用户资料  
 
2 楼 
 文章标题 : Re: zip文件也支持POSIX权限吗?
帖子发表于 : 2012-03-03 12:42 

注册: 2010-07-19 21:41
帖子: 22323
系统: OS X
送出感谢: 8
接收感谢: 42
Pkgbuild 不能在過程中 chmod 麼?…


_________________
NO DO NO DIE
http://a/%%30%30


页首
 用户资料  
 
3 楼 
 文章标题 : Re: zip文件也支持POSIX权限吗?
帖子发表于 : 2012-03-03 12:47 
头像

注册: 2008-07-24 11:33
帖子: 4793
地址: 郑州
送出感谢: 4
接收感谢: 92
额,用chmod -r确实可以解决。
我只是想知道为什么…… 我打包的XPI和网上下的XPI解压后权限不一样。


_________________
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译