summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-10 21:35:32 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-10 21:35:32 -0400
commit1b2ae0a79fb7ece3824336e28b072ba96f32ea01 (patch)
tree4d830b3141569b5fd62fdfa8714dd7462084c426 /gpsdctl.c
parent48c0b06a55c2a3fed0869d976fdc186c9051e24d (diff)
downloadgpsd-1b2ae0a79fb7ece3824336e28b072ba96f32ea01.tar.gz
Suppress Coverity false positives.
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);