Victor Stinner <victor.stinner@inl.fr>
procfile = fopen("/proc/net/ip6_tables_names", "r");
if (!procfile)
- return 0;
+ exit_error(OTHER_PROBLEM,
+ "Unable to open /proc/net/ip6_tables_names: %s\n",
+ strerror(errno));
while (fgets(tablename, sizeof(tablename), procfile)) {
if (tablename[strlen(tablename) - 1] != '\n')
procfile = fopen("/proc/net/ip_tables_names", "r");
if (!procfile)
- return 0;
+ exit_error(OTHER_PROBLEM,
+ "Unable to open /proc/net/ip_tables_names: %s\n",
+ strerror(errno));
while (fgets(tablename, sizeof(tablename), procfile)) {
if (tablename[strlen(tablename) - 1] != '\n')