From 32f9bf1cfece0a2ffa605f6067d71a373f8cc58c Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Mon, 18 Oct 2021 04:57:16 +0530 Subject: [PATCH] Fix permission error when listing devices --- debian/changelog | 3 ++- src/ui/h_prop.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 55c032e..fd81fc1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 18 Oct 2021 04:12:00 +0530 \ No newline at end of file diff --git a/src/ui/h_prop.c b/src/ui/h_prop.c index 8785d15..4bcdbdc 100644 --- a/src/ui/h_prop.c +++ b/src/ui/h_prop.c @@ -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;