From 88937ea0a79638845c347f252bc30e8bd8f8b02b Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 16 Sep 2026 17:50:13 -0400 Subject: [PATCH 1/2] Fix flaky `Debug-Runspace` attach event test (#27885) --- .../Debug-Runspace.Tests.ps1 | 78 ++++++++++++++----- 1 file changed, 60 insertions(+), 18 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Debug-Runspace.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Debug-Runspace.Tests.ps1 index eb387bc44af..59e12e1f80a 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Debug-Runspace.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Debug-Runspace.Tests.ps1 @@ -35,29 +35,71 @@ Describe "Debug-Runspace" -Tag "CI" { It "Should write attach event and mark runspace as having a remote debugger attached" { $onAttachName = [System.Management.Automation.PSEngineEvent]::OnDebugAttach - $debugTarget = [PowerShell]::Create() - $null = $debugTarget.AddCommand('Wait-Event').AddParameter('SourceIdentifier', $onAttachName) - $waitTask = $debugTarget.BeginInvoke() + $targetRunspace = $null + $debugTarget = $null + $debugger = $null + $debugTask = $null - $debugTarget.Runspace.IsRemoteDebuggerAttached | Should -BeFalse + try { + # Open the target runspace up front so that 'Debug-Runspace' can never observe it in a + # non-Opened state, and so that its event manager is guaranteed to exist when the + # OnDebugAttach event is generated. + $targetRunspace = [runspacefactory]::CreateRunspace() + $targetRunspace.Open() - $debugger = [PowerShell]::Create() - $null = $debugger.AddCommand('Debug-Runspace').AddParameter('Id', $debugTarget.Runspace.Id) - $debugTask = $debugger.BeginInvoke() + $debugTarget = [PowerShell]::Create() + $debugTarget.Runspace = $targetRunspace + $null = $debugTarget.AddCommand('Wait-Event').AddParameter('SourceIdentifier', $onAttachName) + $waitTask = $debugTarget.BeginInvoke() - $waitTask.AsyncWaitHandle.WaitOne(10000) | Should -BeTrue - $waitInfo = $debugTarget.EndInvoke($waitTask) - $waitInfo.SourceIdentifier | Should -Be $onAttachName + # 'BeginInvoke' only queues the work. Wait until the 'Wait-Event' pipeline is actually + # running in the target runspace before attaching the debugger, so the attach event is + # never generated against a runspace that has not started executing the waiter. + $ready = Wait-UntilTrue -IntervalInMilliseconds 20 -TimeoutInMilliseconds 5000 -sb { + $debugTarget.InvocationStateInfo.State -eq [System.Management.Automation.PSInvocationState]::Running -and + $targetRunspace.RunspaceAvailability -eq [System.Management.Automation.Runspaces.RunspaceAvailability]::Busy + } + $ready | Should -BeTrue -Because "the 'Wait-Event' pipeline should be running in the target runspace" - $debugTarget.Runspace.IsRemoteDebuggerAttached | Should -BeTrue + $targetRunspace.IsRemoteDebuggerAttached | Should -BeFalse - $debugger.Stop() - $exp = { - $debugger.EndInvoke($debugTask) - } | Should -Throw -PassThru - $exp.FullyQualifiedErrorId | Should -Be "PipelineStoppedException" + $debugger = [PowerShell]::Create() + $null = $debugger.AddCommand('Debug-Runspace').AddParameter('Id', $targetRunspace.Id) + $debugTask = $debugger.BeginInvoke() - $debugTarget.Runspace.IsRemoteDebuggerAttached | Should -BeFalse + $waitTask.AsyncWaitHandle.WaitOne(5000) | Should -BeTrue + $waitInfo = $debugTarget.EndInvoke($waitTask) + $waitInfo.SourceIdentifier | Should -Be $onAttachName + + $targetRunspace.IsRemoteDebuggerAttached | Should -BeTrue + + $debugger.Stop() + $exp = { + $debugger.EndInvoke($debugTask) + } | Should -Throw -PassThru + $exp.FullyQualifiedErrorId | Should -Be "PipelineStoppedException" + + # 'IsRemoteDebuggerAttached' is reset by the cmdlet as it unwinds, which happens + # asynchronously with respect to 'Stop' completing. + $detached = Wait-UntilTrue -IntervalInMilliseconds 20 -TimeoutInMilliseconds 5000 -sb { + -not $targetRunspace.IsRemoteDebuggerAttached + } + $detached | Should -BeTrue + + $targetRunspace.IsRemoteDebuggerAttached | Should -BeFalse + } + finally { + if ($debugger) { + try { $debugger.Stop() } catch { Write-Warning "Failed to stop the debugger during cleanup: $_" } + $debugger.Dispose() + } + + if ($debugTarget) { + try { $debugTarget.Stop() } catch { Write-Warning "Failed to stop the debug target during cleanup: $_" } + $debugTarget.Dispose() + } + + if ($targetRunspace) { $targetRunspace.Dispose() } + } } } - From 8c1e79829783d153181be987b75c81317c6aca82 Mon Sep 17 00:00:00 2001 From: olprod Date: Wed, 16 Sep 2026 15:04:56 -0700 Subject: [PATCH 2/2] Localized file check-in by OneLocBuild Task: Build definition ID 13420: Build ID 2724482 (#28010) --- .pipelines/store/PDPs/PDP/cs/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/de/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/es/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/fr/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/it/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/ja/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/ko/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/pl/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/pt-BR/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/ru/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/tr/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/zh-Hans/PDP.xml | 27 +++---------------- .pipelines/store/PDPs/PDP/zh-Hant/PDP.xml | 27 +++---------------- .../cs/FileSystemProviderStrings.cs.resx | 9 +++++++ .../de/FileSystemProviderStrings.de.resx | 9 +++++++ .../es/FileSystemProviderStrings.es.resx | 9 +++++++ .../fr/FileSystemProviderStrings.fr.resx | 9 +++++++ .../it/FileSystemProviderStrings.it.resx | 9 +++++++ .../ja/FileSystemProviderStrings.ja.resx | 9 +++++++ .../ko/FileSystemProviderStrings.ko.resx | 9 +++++++ .../pl/FileSystemProviderStrings.pl.resx | 9 +++++++ .../FileSystemProviderStrings.pt-BR.resx | 9 +++++++ .../ru/FileSystemProviderStrings.ru.resx | 9 +++++++ .../tr/FileSystemProviderStrings.tr.resx | 9 +++++++ .../FileSystemProviderStrings.zh-Hans.resx | 9 +++++++ .../FileSystemProviderStrings.zh-Hant.resx | 9 +++++++ 26 files changed, 156 insertions(+), 312 deletions(-) diff --git a/.pipelines/store/PDPs/PDP/cs/PDP.xml b/.pipelines/store/PDPs/PDP/cs/PDP.xml index 62191202e23..18cf01a1552 100644 --- a/.pipelines/store/PDPs/PDP/cs/PDP.xml +++ b/.pipelines/store/PDPs/PDP/cs/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell je opensourcový. Viz https://github.com/powershell/powershell - Další podrobnosti najdete na naší stránce s vydáními na GitHubu. - - - - - - - - - - - - - - - - + Verze: ___VERSION___ + +Protokol změn: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/de/PDP.xml b/.pipelines/store/PDPs/PDP/de/PDP.xml index ece2876dab8..58a6e4f3678 100644 --- a/.pipelines/store/PDPs/PDP/de/PDP.xml +++ b/.pipelines/store/PDPs/PDP/de/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell ist Open Source. https://github.com/powershell/powershell anzeigen - Weitere Informationen finden Sie auf unserer GitHub-Releaseseite. - - - - - - - - - - - - - - - - + Version: ___VERSION___ + +Änderungsprotokoll: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/es/PDP.xml b/.pipelines/store/PDPs/PDP/es/PDP.xml index 5509fe13b45..63432f9c800 100644 --- a/.pipelines/store/PDPs/PDP/es/PDP.xml +++ b/.pipelines/store/PDPs/PDP/es/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell es de código abierto. Ver https://github.com/powershell/powershell< - Consulte la página de versiones de GitHub para obtener más información. - - - - - - - - - - - - - - - - + Versión: ___VERSION___ + +Registro de cambios: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/fr/PDP.xml b/.pipelines/store/PDPs/PDP/fr/PDP.xml index 03538596b3a..3074bf897ea 100644 --- a/.pipelines/store/PDPs/PDP/fr/PDP.xml +++ b/.pipelines/store/PDPs/PDP/fr/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell est open source. Voir https://github.com/powershell/powershell - Veuillez consulter notre page des versions GitHub pour plus de détails. - - - - - - - - - - - - - - - - + Version: ___VERSION___ + +Changelog: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/it/PDP.xml b/.pipelines/store/PDPs/PDP/it/PDP.xml index d7db6db8467..c40e933112c 100644 --- a/.pipelines/store/PDPs/PDP/it/PDP.xml +++ b/.pipelines/store/PDPs/PDP/it/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell è open source. Vedi https://github.com/powershell/powershell - Per altri dettagli, vedere la pagina delle versioni di GitHub. - - - - - - - - - - - - - - - - + Versione: ___VERSION___ + +Log delle modifiche: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/ja/PDP.xml b/.pipelines/store/PDPs/PDP/ja/PDP.xml index ac3cb034c6e..40bc3cb66d1 100644 --- a/.pipelines/store/PDPs/PDP/ja/PDP.xml +++ b/.pipelines/store/PDPs/PDP/ja/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell はオープン ソースです。 https://github.com/powershell/powe - より詳しい情報については、GitHub のリリース ページをご覧ください。 - - - - - - - - - - - - - - - - + バージョン: ___VERSION___ + +変更ログ: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/ko/PDP.xml b/.pipelines/store/PDPs/PDP/ko/PDP.xml index 4d7cb7e68da..ab355ca6368 100644 --- a/.pipelines/store/PDPs/PDP/ko/PDP.xml +++ b/.pipelines/store/PDPs/PDP/ko/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell이 오픈 소스로 제공됨. See https://github.com/powershell/pow - 자세한 내용은 GitHub 릴리스 페이지를 참조하세요. - - - - - - - - - - - - - - - - + Version: ___VERSION___ + +Changelog: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/pl/PDP.xml b/.pipelines/store/PDPs/PDP/pl/PDP.xml index 19bcf51fe53..6cefcba1a65 100644 --- a/.pipelines/store/PDPs/PDP/pl/PDP.xml +++ b/.pipelines/store/PDPs/PDP/pl/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell jest oprogramowaniem open source. Zobacz https://github.com/powershe - Aby uzyskać dodatkowe informacje, zobacz naszą stronę wersji usługi GitHub. - - - - - - - - - - - - - - - - + Wersja: ___VERSION___ + +Dziennik zmian: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/pt-BR/PDP.xml b/.pipelines/store/PDPs/PDP/pt-BR/PDP.xml index d400d7014c1..d9db72e2a13 100644 --- a/.pipelines/store/PDPs/PDP/pt-BR/PDP.xml +++ b/.pipelines/store/PDPs/PDP/pt-BR/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ O PowerShell é de código aberto. Confira https://github.com/powershell/power - Confira nossa página de versões do GitHub para obter detalhes adicionais. - - - - - - - - - - - - - - - - + Versão: ___VERSION___ + +Log de Mudanças: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/ru/PDP.xml b/.pipelines/store/PDPs/PDP/ru/PDP.xml index 04d34f83138..83db95c169a 100644 --- a/.pipelines/store/PDPs/PDP/ru/PDP.xml +++ b/.pipelines/store/PDPs/PDP/ru/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell использует открытый код. См. https://github.c - Дополнительные сведения см. на странице выпусков GitHub. - - - - - - - - - - - - - - - - + Версия: ___VERSION___ + +Журнал изменений: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/tr/PDP.xml b/.pipelines/store/PDPs/PDP/tr/PDP.xml index 57931f282f6..de56e5e004a 100644 --- a/.pipelines/store/PDPs/PDP/tr/PDP.xml +++ b/.pipelines/store/PDPs/PDP/tr/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ Windows PowerShell Açık Kaynaktır. Daha fazla bilgi için https://github.com - Ek ayrıntılar için lütfen GitHub sürümler sayfamızı inceleyin. - - - - - - - - - - - - - - - - + Sürüm: ___VERSION___ + +Değişiklik günlüğü: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/zh-Hans/PDP.xml b/.pipelines/store/PDPs/PDP/zh-Hans/PDP.xml index 7d2f977b60e..a4a55358d55 100644 --- a/.pipelines/store/PDPs/PDP/zh-Hans/PDP.xml +++ b/.pipelines/store/PDPs/PDP/zh-Hans/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell 是开放源代码。 请参阅 https://github.com/powershell/powersh - 有关其他详细信息,请参阅我们的 GitHub 发布页面。 - - - - - - - - - - - - - - - - + 版本: ___VERSION___ + +更改日志: ___CHANGELOGLINK___ diff --git a/.pipelines/store/PDPs/PDP/zh-Hant/PDP.xml b/.pipelines/store/PDPs/PDP/zh-Hant/PDP.xml index 569bfe8a4f2..f2f2bf8dfdf 100644 --- a/.pipelines/store/PDPs/PDP/zh-Hant/PDP.xml +++ b/.pipelines/store/PDPs/PDP/zh-Hant/PDP.xml @@ -1,12 +1,5 @@ - - - - - - - @@ -51,23 +44,9 @@ PowerShell 是開放原始碼。 請參閱 https://github.com/powershell/powersh - 如需其他詳細資料,請參閱我們的 GitHub 發行頁面。 - - - - - - - - - - - - - - - - + 版本: ___VERSION___ + +變更記錄:___CHANGELOGLINK___ diff --git a/src/System.Management.Automation/resources/cs/FileSystemProviderStrings.cs.resx b/src/System.Management.Automation/resources/cs/FileSystemProviderStrings.cs.resx index 4420cda59a0..a3ba67e3460 100644 --- a/src/System.Management.Automation/resources/cs/FileSystemProviderStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/FileSystemProviderStrings.cs.resx @@ -240,6 +240,15 @@ Cestu {0} nejde zpracovat, protože cíl představuje rezervovaný název zařízení. + + Vzdálený název adresáře „{0}“ nejde zpracovat, protože by mohl vést k procházení cest. + + + Vzdálený název souboru „{0}“ nejde zpracovat, protože by mohl vést k procházení cest. + + + Vzdálený název alternativního datového proudu „{0}“ nejde zpracovat, protože by mohl vést k procházení cest. + Při zadání -AsByteStream se kódování nepoužívá. diff --git a/src/System.Management.Automation/resources/de/FileSystemProviderStrings.de.resx b/src/System.Management.Automation/resources/de/FileSystemProviderStrings.de.resx index 43f7e9fa78f..1eca9afe3cb 100644 --- a/src/System.Management.Automation/resources/de/FileSystemProviderStrings.de.resx +++ b/src/System.Management.Automation/resources/de/FileSystemProviderStrings.de.resx @@ -240,6 +240,15 @@ Der Pfad „{0}“ kann nicht verarbeitet werden, da das Ziel einen reservierten Gerätenamen darstellt. + + Der Remoteverzeichnisname „{0}“ kann nicht verarbeitet werden, da dies zu einem Pfaddurchlauf führen kann. + + + Der Remotedateiname „{0}“ kann nicht verarbeitet werden, da dies zu einem Pfaddurchlauf führen kann. + + + Der Remotename des alternativen Datenstroms „{0}“ kann nicht verarbeitet werden, da dies zu einem Pfaddurchlauf führen kann. + Die Codierung wird nicht verwendet, wenn „-AsByteStream“ angegeben ist. diff --git a/src/System.Management.Automation/resources/es/FileSystemProviderStrings.es.resx b/src/System.Management.Automation/resources/es/FileSystemProviderStrings.es.resx index 53e932534a4..6346f6b421a 100644 --- a/src/System.Management.Automation/resources/es/FileSystemProviderStrings.es.resx +++ b/src/System.Management.Automation/resources/es/FileSystemProviderStrings.es.resx @@ -240,6 +240,15 @@ No se puede procesar la ruta de acceso "{0}" porque el destino representa un nombre de dispositivo reservado. + + No se puede procesar el nombre del directorio remoto "{0}" porque puede dar lugar a un recorrido de ruta de acceso. + + + No se puede procesar el nombre de archivo remoto "{0}" porque puede dar lugar a un recorrido de ruta de acceso. + + + No se puede procesar el nombre de flujo de datos alternativo remoto "{0}" porque puede dar lugar a un recorrido de ruta de acceso. + No se usa la codificación cuando se especifica "-AsByteStream". diff --git a/src/System.Management.Automation/resources/fr/FileSystemProviderStrings.fr.resx b/src/System.Management.Automation/resources/fr/FileSystemProviderStrings.fr.resx index 331170171e1..2460d1ad58f 100644 --- a/src/System.Management.Automation/resources/fr/FileSystemProviderStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/FileSystemProviderStrings.fr.resx @@ -240,6 +240,15 @@ Impossible de traiter le chemin d’accès « {0} », car la cible représente un nom d’appareil réservé. + + Cannot process the remote directory name '{0}' because it may result in path traversal. + + + Cannot process the remote file name '{0}' because it may result in path traversal. + + + Cannot process the remote Alternate Data Stream name '{0}' because it may result in path traversal. + L’encodage n’est pas utilisé quand « -AsByteStream » est spécifié. diff --git a/src/System.Management.Automation/resources/it/FileSystemProviderStrings.it.resx b/src/System.Management.Automation/resources/it/FileSystemProviderStrings.it.resx index 00a2d9e1470..d107767a057 100644 --- a/src/System.Management.Automation/resources/it/FileSystemProviderStrings.it.resx +++ b/src/System.Management.Automation/resources/it/FileSystemProviderStrings.it.resx @@ -240,6 +240,15 @@ Non è possibile elaborare il percorso ''{0}'' perché la destinazione rappresenta un nome di dispositivo riservato. + + Non è possibile elaborare il nome della directory remota '{0}' perché potrebbe causare l'attraversamento del percorso. + + + Non è possibile elaborare il nome del file remoto '{0}' perché potrebbe causare l'attraversamento del percorso. + + + Non è possibile elaborare il nome remoto del flusso di dati alternativo '{0}' perché potrebbe causare l'attraversamento del percorso. + Codifica non utilizzata quando è specificato ''-AsByteStream''. diff --git a/src/System.Management.Automation/resources/ja/FileSystemProviderStrings.ja.resx b/src/System.Management.Automation/resources/ja/FileSystemProviderStrings.ja.resx index 513db782e05..a155638cb6f 100644 --- a/src/System.Management.Automation/resources/ja/FileSystemProviderStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/FileSystemProviderStrings.ja.resx @@ -240,6 +240,15 @@ ターゲットが予約済みデバイス名を表しているため、パス '{0}' を処理できません。 + + リモートのディレクトリ名 '{0}' は、パスのトラバーサルを引き起こす可能性があるため、処理できません。 + + + リモートのファイル名 '{0}' は、パスのトラバーサルを引き起こす可能性があるため、処理できません。 + + + リモートの代替データ ストリーム名 '{0}' は、パスのトラバーサルを引き起こす可能性があるため、処理できません。 + エンコードは、'-AsByteStream' が指定されている場合は使用されません。 diff --git a/src/System.Management.Automation/resources/ko/FileSystemProviderStrings.ko.resx b/src/System.Management.Automation/resources/ko/FileSystemProviderStrings.ko.resx index 83ff373cc05..01252724b58 100644 --- a/src/System.Management.Automation/resources/ko/FileSystemProviderStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/FileSystemProviderStrings.ko.resx @@ -240,6 +240,15 @@ 대상이 예약된 디바이스 이름을 나타내므로 경로 '{0}'을(를) 처리할 수 없습니다. + + Cannot process the remote directory name '{0}' because it may result in path traversal. + + + Cannot process the remote file name '{0}' because it may result in path traversal. + + + Cannot process the remote Alternate Data Stream name '{0}' because it may result in path traversal. + '-AsByteStream'이 지정되면 인코딩은 사용되지 않습니다. diff --git a/src/System.Management.Automation/resources/pl/FileSystemProviderStrings.pl.resx b/src/System.Management.Automation/resources/pl/FileSystemProviderStrings.pl.resx index a810900c7e2..6d3e7993d66 100644 --- a/src/System.Management.Automation/resources/pl/FileSystemProviderStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/FileSystemProviderStrings.pl.resx @@ -240,6 +240,15 @@ Nie można przetworzyć ścieżki „{0}”, ponieważ element docelowy reprezentuje zastrzeżoną nazwę urządzenia. + + Nie można przetworzyć nazwy katalogu zdalnego '{0}', ponieważ może to spowodować przechodzenie ścieżek. + + + Nie można przetworzyć nazwy pliku zdalnego '{0}', ponieważ może to spowodować przechodzenie ścieżki. + + + Nie można przetworzyć nazwy Stream danych alternatywnych '{0}', ponieważ może to spowodować przechodzenie ścieżek. + Kodowanie nie jest używane, gdy określono element „-AsByteStream”. diff --git a/src/System.Management.Automation/resources/pt-BR/FileSystemProviderStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/FileSystemProviderStrings.pt-BR.resx index e94cb719cca..d4a9aa30e39 100644 --- a/src/System.Management.Automation/resources/pt-BR/FileSystemProviderStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/FileSystemProviderStrings.pt-BR.resx @@ -240,6 +240,15 @@ Não é possível processar o caminho '{0}' porque o destino representa um nome de dispositivo reservado. + + Não é possível processar o nome do diretório remoto '{0}' porque ele pode resultar em passagem de caminho. + + + Não é possível processar o nome do arquivo remoto '{0}' porque ele pode resultar em passagem de caminho. + + + Não é possível processar o nome do Stream de Dados Alternativos remoto '{0}' porque ele pode resultar em passagem de caminho. + A codificação não é usada quando '-AsByteStream' é especificado. diff --git a/src/System.Management.Automation/resources/ru/FileSystemProviderStrings.ru.resx b/src/System.Management.Automation/resources/ru/FileSystemProviderStrings.ru.resx index 6583905d948..8a72e86e26d 100644 --- a/src/System.Management.Automation/resources/ru/FileSystemProviderStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/FileSystemProviderStrings.ru.resx @@ -240,6 +240,15 @@ Невозможно обработать путь "{0}", так как целевой объект представляет зарезервированное имя устройства. + + Невозможно обработать имя удаленного каталога "{0}", поскольку это может привести к обходу пути. + + + Невозможно обработать имя удаленного файла "{0}", поскольку это может привести к обходу пути. + + + Невозможно обработать имя удаленного альтернативного потока данных "{0}", поскольку это может привести к обходу пути. + Кодирование не используется, если указан параметр "-AsByteStream". diff --git a/src/System.Management.Automation/resources/tr/FileSystemProviderStrings.tr.resx b/src/System.Management.Automation/resources/tr/FileSystemProviderStrings.tr.resx index cbd54390600..60e8415f4ef 100644 --- a/src/System.Management.Automation/resources/tr/FileSystemProviderStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/FileSystemProviderStrings.tr.resx @@ -240,6 +240,15 @@ Hedef ayrılmış bir cihaz adını temsil ettiğinden '{0}' yolu işlenemiyor. + + Yol geçişine neden olabileceği için uzak dizin adı '{0}' işlenemiyor. + + + Yol geçişine neden olabileceği için uzak dosya adı '{0}' işlenemiyor. + + + Yol geçişine neden olabileceği için Uzak Alternatif Veri Akışı adı '{0}' işlenemiyor. + '-AsByteStream' belirtildiğinde kodlama kullanılmaz. diff --git a/src/System.Management.Automation/resources/zh-Hans/FileSystemProviderStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/FileSystemProviderStrings.zh-Hans.resx index be4a583e929..f8230c284d9 100644 --- a/src/System.Management.Automation/resources/zh-Hans/FileSystemProviderStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/FileSystemProviderStrings.zh-Hans.resx @@ -240,6 +240,15 @@ 无法处理路径 "{0}",因为目标代表保留的设备名称。 + + 无法处理远程目录名 '{0}',因为它可能导致路径遍历。 + + + 无法处理远程文件名 '{0}',因为它可能导致路径遍历。 + + + 无法处理远程备用数据流名称 '{0}',因为它可能导致路径遍历。 + 指定 "-AsByteStream" 时不使用编码。 diff --git a/src/System.Management.Automation/resources/zh-Hant/FileSystemProviderStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/FileSystemProviderStrings.zh-Hant.resx index f386a965f57..939da17aa82 100644 --- a/src/System.Management.Automation/resources/zh-Hant/FileSystemProviderStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/FileSystemProviderStrings.zh-Hant.resx @@ -240,6 +240,15 @@ 無法處理路徑 '{0}',因為目標代表保留的裝置名稱。 + + 無法處理遠端目錄名稱 '{0}',因為這可能會導致路徑穿越。 + + + 無法處理遠端檔案名稱 '{0}',因為這可能會導致路徑穿越。 + + + 無法處理遠端替代資料流名稱 '{0}',因為這可能會導致路徑穿越。 + 指定 '-AsByteStream' 時不使用編碼。