[PATCH] nfacct: remove unecessary end of line check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>

The EOF character alone should determine the end of input during
restore operations.

Signed-off-by: Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>
---
 src/nfacct.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/nfacct.c b/src/nfacct.c
index e1c405e..091a5c9 100644
--- a/src/nfacct.c
+++ b/src/nfacct.c
@@ -581,10 +581,6 @@ static int nfacct_cmd_restore(int argc, char *argv[])
 			return -1;
 		}
 
-		/* a single ';' terminates the input */
-		if (strncmp(buffer, ";", 1) == 0)
-			break;
-
 		*semicolon = 0;
 		ret = flags = 0;
 		quota = 0;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux