在 checkin 文件时,如何通过图形客户端强制为所有人保留执行位,而不仅仅是为用户和组保留执行位?
现在我所做的是右键单击文件 ->
Change Filetype ->
然后勾选 exec bit set in workspace 选项
.这确实保留了执行位,但仅针对用户和文件组(据我了解,这等同于 this 问题中描述的过程)。
我怎样才能让它为所有人保留执行位?
插图。
checkin 前:
-rwxr-x--x 1 user group_name 0 Jul 20 14:14 test_file
^
checkin 后:
-r-xr-x--- 1 user group_name 0 Jul 20 14:24 test_file
^
最佳答案
据我所知,p4
尊重您的 umask
配置,因此这可能是您的 umask
的问题:
$ umask -S
u=rwx,g=rx,o=rx
$ p4 sync -f some_script
//depot/path/some_script#1 - refreshing /client/path/some_script
$ ls -algGF some_script
-r-xr-xr-x 1 0 Jul 21 04:13 some_script*
$ umask o=
$ umask -S
u=rwx,g=rx,o=
$ p4 sync -f some_script
//depot/path/some_script#1 - refreshing /client/path/some_script
$ ls -algGF some_script
-r-xr-x--- 1 0 Jul 21 04:14 some_script*
关于linux - 防止 perforce 在检入文件时为所有用户切换执行位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31518684/