changeset 5414:bf786eeda3fc draft

Linux: fix reading the ipv6 forwarding proc entry We need to ensure that the carriage return doesn't give issue.
author Roy Marples <roy@marples.name>
date Mon, 03 Aug 2020 16:54:59 +0100
parents bb929420bc5d
children 5fae7c5c0f25
files src/if-linux.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-linux.c	Mon Aug 03 16:15:39 2020 +0100
+++ b/src/if-linux.c	Mon Aug 03 16:54:59 2020 +0100
@@ -2090,7 +2090,7 @@
 	if (readfile(path, buf, sizeof(buf)) == -1)
 		return 0;
 	i = (int)strtoi(buf, NULL, 0, INT_MIN, INT_MAX, &error);
-	if (error != 0)
+	if (error != 0 && error != ENOTSUP)
 		return 0;
 	return i;
 }