diff options
-rw-r--r-- | sbin/ip6fw/ip6fw.c | 5 | ||||
-rw-r--r-- | sbin/ipfw/ipfw.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sbin/ip6fw/ip6fw.c b/sbin/ip6fw/ip6fw.c index ff0a096..a054a02 100644 --- a/sbin/ip6fw/ip6fw.c +++ b/sbin/ip6fw/ip6fw.c @@ -1273,9 +1273,8 @@ main(ac, av) setbuf(stdout,0); /* - * this is a nasty check on the last argument!!! - * If there happens to be a filename matching a keyword in the current - * directory, things will fail miserably. + * Only interpret the last command line argument as a file to + * be preprocessed if it is specified as an absolute pathname. */ if (ac > 1 && av[ac - 1][0] == '/' && access(av[ac - 1], R_OK) == 0) { diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index e76b710..19c5812 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -2378,9 +2378,8 @@ main(ac, av) setbuf(stdout,0); /* - * this is a nasty check on the last argument!!! - * If there happens to be a filename matching a keyword in the current - * directory, things will fail miserably. + * Only interpret the last command line argument as a file to + * be preprocessed if it is specified as an absolute pathname. */ if (ac > 1 && av[ac - 1][0] == '/' && access(av[ac - 1], R_OK) == 0) { |