diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-10 21:35:32 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-10 21:35:32 -0400 |
commit | 1b2ae0a79fb7ece3824336e28b072ba96f32ea01 (patch) | |
tree | 4d830b3141569b5fd62fdfa8714dd7462084c426 /gpsdctl.c | |
parent | 48c0b06a55c2a3fed0869d976fdc186c9051e24d (diff) | |
download | gpsd-1b2ae0a79fb7ece3824336e28b072ba96f32ea01.tar.gz |
Suppress Coverity false positives.
Diffstat (limited to 'gpsdctl.c')
-rw-r--r-- | gpsdctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |