File tree Expand file tree Collapse file tree
crates/ironclaw_engine/src/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ mod tests {
331331 assert ! ( matches!( err, MountError :: InvalidPath { .. } ) ) ;
332332 }
333333
334+ #[ cfg( unix) ]
334335 #[ tokio:: test]
335336 async fn rejects_symlink_escapes ( ) {
336337 // Set up: backend root is a tempdir; create a symlink inside that
@@ -340,20 +341,13 @@ mod tests {
340341 let outside = tempfile:: tempdir ( ) . unwrap ( ) ;
341342 std:: fs:: write ( outside. path ( ) . join ( "secret" ) , b"oops" ) . unwrap ( ) ;
342343 // best effort — symlink may not work on all platforms; skip if it fails
343- #[ cfg( unix) ]
344- {
345- let link = dir. path ( ) . join ( "escape" ) ;
346- std:: os:: unix:: fs:: symlink ( outside. path ( ) , & link) . unwrap ( ) ;
347- let err = backend
348- . read ( Path :: new ( "escape/secret" ) )
349- . await
350- . expect_err ( "symlink escape must be rejected" ) ;
351- assert ! ( matches!( err, MountError :: InvalidPath { .. } ) ) ;
352- }
353- #[ cfg( not( unix) ) ]
354- {
355- let _ = dir; // unused on non-unix
356- }
344+ let link = dir. path ( ) . join ( "escape" ) ;
345+ std:: os:: unix:: fs:: symlink ( outside. path ( ) , & link) . unwrap ( ) ;
346+ let err = backend
347+ . read ( Path :: new ( "escape/secret" ) )
348+ . await
349+ . expect_err ( "symlink escape must be rejected" ) ;
350+ assert ! ( matches!( err, MountError :: InvalidPath { .. } ) ) ;
357351 }
358352
359353 #[ tokio:: test]
Original file line number Diff line number Diff line change 22 "name" : " feishu" ,
33 "display_name" : " Feishu / Lark Channel" ,
44 "kind" : " channel" ,
5- "version" : " 0.2.1 " ,
5+ "version" : " 0.2.2 " ,
66 "wit_version" : " 0.3.0" ,
77 "description" : " Talk to your agent through a Feishu or Lark bot" ,
88 "keywords" : [
Original file line number Diff line number Diff line change 22 "name" : " slack" ,
33 "display_name" : " Slack Channel" ,
44 "kind" : " channel" ,
5- "version" : " 0.3.0 " ,
5+ "version" : " 0.3.1 " ,
66 "wit_version" : " 0.3.0" ,
77 "description" : " Talk to your agent in Slack" ,
88 "keywords" : [
You can’t perform that action at this time.
0 commit comments