File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -651,6 +651,18 @@ pub fn get_users() -> String {
651651 let permissions = fs:: Permissions :: from_mode ( 0o000 ) ;
652652 fs:: set_permissions ( & file_path, permissions) . expect ( "Failed to set permissions" ) ;
653653
654+ // Verify permissions actually took effect (they don't on WSL with Windows filesystem)
655+ // If we can still read the file, skip this test
656+ if fs:: read_to_string ( & file_path) . is_ok ( ) {
657+ // Restore permissions for cleanup
658+ let permissions = fs:: Permissions :: from_mode ( 0o644 ) ;
659+ fs:: set_permissions ( & file_path, permissions) . ok ( ) ;
660+ eprintln ! (
661+ "Skipping test: filesystem doesn't respect Unix permissions (likely WSL with NTFS)"
662+ ) ;
663+ return ;
664+ }
665+
654666 // Attempt to collect metadata - should fail with "failed to read route file" error
655667 let result = collect_metadata ( temp_dir. path ( ) , folder_name) ;
656668
You can’t perform that action at this time.
0 commit comments