File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ pub fn set_permissions(path: &Path, perm: FilePermissions) -> io::Result<()> {
122122 with_native_path ( path, & |path| imp:: set_perm ( path, perm. clone ( ) ) )
123123}
124124
125- #[ cfg( unix) ]
125+ #[ cfg( all ( unix, not ( target_os = "vxworks" ) ) ) ]
126126pub fn set_permissions_nofollow ( path : & Path , perm : crate :: fs:: Permissions ) -> io:: Result < ( ) > {
127127 use crate :: fs:: OpenOptions ;
128128
@@ -139,7 +139,7 @@ pub fn set_permissions_nofollow(path: &Path, perm: crate::fs::Permissions) -> io
139139 options. open ( path) ?. set_permissions ( perm)
140140}
141141
142- #[ cfg( not( unix) ) ]
142+ #[ cfg( any ( not( unix) , target_os = "vxworks" ) ) ]
143143pub fn set_permissions_nofollow ( _path : & Path , _perm : crate :: fs:: Permissions ) -> io:: Result < ( ) > {
144144 crate :: unimplemented!(
145145 "`set_permissions_nofollow` is currently only implemented on Unix platforms"
You can’t perform that action at this time.
0 commit comments