Commit 3eb2013b authored by Bernd Eckenfels's avatar Bernd Eckenfels

more backoff

parent 8ccfb33e
......@@ -3,7 +3,7 @@
* that maintains the kernel's RARP cache. It is derived
* from Fred N. van Kempen's arp command.
*
* Version: $Id: rarp.c,v 1.8 2007/12/01 19:36:55 ecki Exp $
* Version: $Id: rarp.c,v 1.9 2007/12/02 02:19:52 ecki Exp $
*
* Usage: rarp -d hostname Delete entry
* rarp -s hostname ethernet_address Add entry
......@@ -125,7 +125,7 @@ static int rarp_file(int fd, const char *name)
FILE *fp;
struct hostent *hp;
if ((fp = fopen(name)) == NULL) {
if ((fp = fopen(name, "r")) == NULL) {
fprintf(stderr, _("rarp: cannot open file %s:%s.\n"), name, strerror(errno));
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment