Fix permission error when listing devices

This commit is contained in:
Lakindu Akash 2021-10-18 04:57:16 +05:30
parent 1ad574b023
commit 32f9bf1cfe
No known key found for this signature in database
GPG Key ID: 6FB0085A614E0AC2
2 changed files with 3 additions and 2 deletions

3
debian/changelog vendored
View File

@ -1,5 +1,6 @@
linux-wifi-hotspot (4.3.0) UNRELEASED; urgency=low
linux-wifi-hotspot (4.3.1) UNRELEASED; urgency=low
* Add qr code generate support
* Fix error when listing connected devices
-- Lakindu Akash <lakinduakash@users.noreply.github.com> Sat, 18 Oct 2021 04:12:00 +0530

View File

@ -464,7 +464,7 @@ char* generate_qr_image(char* ssid,char* type,char *password){
Node get_connected_devices(char *PID)
{
char cmd[BUFSIZE];
snprintf(cmd, BUFSIZE, "%s --list-clients %s", CREATE_AP, PID);
snprintf(cmd, BUFSIZE, "%s %s --list-clients %s", SUDO, CREATE_AP, PID);
FILE *fp;
Node l = (struct Device *)malloc(sizeof(struct Device));
Position head = l;