Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p11-kit does not seem to support paths with spaces #22438

Open
3 of 6 tasks
DeepChirp opened this issue Nov 7, 2024 · 3 comments
Open
3 of 6 tasks

p11-kit does not seem to support paths with spaces #22438

DeepChirp opened this issue Nov 7, 2024 · 3 comments
Labels

Comments

@DeepChirp
Copy link

Description / Steps to reproduce the issue

  1. Install msys2 to C:\Program Files\msys64.
  2. Excute pacman -S mingw-w64-ucrt-x86_64-ca-certificates.

Expected behavior

No error occuers.

Actual behavior

p11-kit: 'Files/msys64/ucrt64/bin/trust.exe' is not a valid command. See 'Program --help'
p11-kit: couldn't run trust tool: No error

Verification

Windows Version

MSYS_NT-10.0-26100

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

@DeepChirp DeepChirp added the bug label Nov 7, 2024
@Biswa96
Copy link
Member

Biswa96 commented Nov 7, 2024

The install steps mention not to install in paths with spaces https://www.msys2.org/

@DeepChirp
Copy link
Author

The install steps mention not to install in paths with spaces https://www.msys2.org/

I think it's better to notice user in the installer.

@vmi
Copy link

vmi commented Nov 8, 2024

Hi,

p11-kit uses "_spawnv" to launch trust.exe, but I found that "_spawnv" has a bug in handling whitespace characters.

The 3rd argument of "_spawnv" seems to be passed to the command as a single string, even if it is separated by an array.
If you enclose them in double quotes, they are treated as a single argument.
However, if argv[0] is enclosed in double quotes and passed to the 2nd argument of "_spawnv", an error occurs.

Details are available at "https://github.com/vmi/mingw-spawnv-bug".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants