wifi-password icon indicating copy to clipboard operation
wifi-password copied to clipboard

Error when SSID contains directory characters

Open A1rPun opened this issue 6 years ago • 1 comments

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)

I originally posted this issue to wifi-password-cli but the concatenation happens in this library

A1rPun avatar Oct 19 '17 11:10 A1rPun

I imagine that those characters would have to be escaped.

aflansburg avatar Nov 02 '17 00:11 aflansburg