Merge pull request #202 from lakinduakash/dev

Fix permission error when listing devices
This commit is contained in:
Lakindu Akash 2021-10-18 04:58:41 +05:30 committed by GitHub
commit d08e0290c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 * 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 -- 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) Node get_connected_devices(char *PID)
{ {
char cmd[BUFSIZE]; 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; FILE *fp;
Node l = (struct Device *)malloc(sizeof(struct Device)); Node l = (struct Device *)malloc(sizeof(struct Device));
Position head = l; Position head = l;