diff options
| author | Alexander Langer <alex@FreeBSD.org> | 1996-06-18 01:46:34 +0000 |
|---|---|---|
| committer | Alexander Langer <alex@FreeBSD.org> | 1996-06-18 01:46:34 +0000 |
| commit | 2a7a2545a477104a69bf5f1d000ac3a354876f69 (patch) | |
| tree | 9370924e20e2ada579dba2a27a5540adefd191f7 | |
| parent | 9b2b0822b7a3081fce7dbb774093e8429c6e42eb (diff) | |
Notes
| -rw-r--r-- | sbin/ipfw/ipfw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index a74d62ea6aafd..2a0c293ccad20 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -16,7 +16,7 @@ * * NEW command line interface for IP firewall facility * - * $Id: ipfw.c,v 1.24 1996/05/11 20:31:55 phk Exp $ + * $Id: ipfw.c,v 1.25 1996/06/09 23:46:22 alex Exp $ * */ @@ -833,6 +833,8 @@ main(ac, av) int i; FILE *f; + strcpy(progname,*av); + s = socket( AF_INET, SOCK_RAW, IPPROTO_RAW ); if ( s < 0 ) { fprintf(stderr,"%s: Can't open raw socket.\n" @@ -842,8 +844,6 @@ main(ac, av) setbuf(stdout,0); - strcpy(progname,*av); - if (av[1] && !access(av[1], R_OK)) { lineno = 0; f = fopen(av[1], "r"); |
