From 234b63a1825deac19aa47e0e819da56ba5d6fa3d Mon Sep 17 00:00:00 2001 From: Bernd Eckenfels Date: Thu, 1 Nov 2001 01:48:31 +0000 Subject: [PATCH] failed to set error flag if netmask setting reported an error (Debian Bug #117837 reported by Sam Clegg) --- ifconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ifconfig.c b/ifconfig.c index 37e39ee..9e26c5b 100644 --- a/ifconfig.c +++ b/ifconfig.c @@ -3,7 +3,7 @@ * that either displays or sets the characteristics of * one or more of the system's networking interfaces. * - * Version: $Id: ifconfig.c,v 1.51 2001/06/29 03:48:51 ecki Exp $ + * Version: $Id: ifconfig.c,v 1.52 2001/11/01 01:48:31 ecki Exp $ * * Author: Fred N. van Kempen, * and others. Copyright 1993 MicroWalt Corporation @@ -248,7 +248,7 @@ static int set_netmask(int skfd, struct ifreq *ifr, struct sockaddr *sa) strerror(errno)); err = 1; } - return 0; + return err; } int main(int argc, char **argv) -- 2.7.4