kevva / wifi-password-cli

Get current wifi password
MIT License
291 stars 15 forks source link

Error when SSID contains directory characters #1

Closed A1rPun closed 7 years ago

A1rPun commented 7 years ago

When I try to retrieve the password of the SSID /\/\r.g33l< I get the following error:

$ wifi-password
Error: Command failed: sudo cat /etc/NetworkManager/system-connections//\/\r.g33l<
cat: '/etc/NetworkManager/system-connections//\/\r.g33l<': No such file or directory

    at Promise.all.then.arr (/usr/lib/node_modules/wifi-password-cli/node_modules/execa/index.js:231:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
A1rPun commented 7 years ago

I'll close this here because I think wifi-password is responsible for the issue. The concatenation of directory & SSID happens there