Skip to content

Commit

Permalink
more backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Eckenfels committed Dec 2, 2007
1 parent 8ccfb33 commit 3eb2013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 3eb2013

Please sign in to comment.