summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 59214bfb..a3346d47 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -67,6 +67,7 @@ static int gpsd_control(char *action, char *argument)
*/
struct stat sb;
+ /* coverity[toctou] */
if (stat(argument, &sb) != 1)
(void)chmod(argument, sb.st_mode | S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
(void)snprintf(buf, sizeof(buf), "+%s\r\n", argument);