From 1b2ae0a79fb7ece3824336e28b072ba96f32ea01 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 10 May 2012 21:35:32 -0400 Subject: Suppress Coverity false positives. --- gpsdctl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gpsdctl.c') 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); -- cgit v1.2.1