diff options
author | rsc <devnull@localhost> | 2005-01-04 21:25:17 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-04 21:25:17 +0000 |
commit | c39bd3556bde09d322d09b0c968a67d36f2f4b09 (patch) | |
tree | ba555aa9fa568aa5ce110c5e3371f730506d7c5d /src | |
parent | e2a1725dfc268b75c44093381da2a119e570f5fa (diff) | |
download | plan9port-c39bd3556bde09d322d09b0c968a67d36f2f4b09.tar.gz plan9port-c39bd3556bde09d322d09b0c968a67d36f2f4b09.tar.bz2 plan9port-c39bd3556bde09d322d09b0c968a67d36f2f4b09.zip |
allow - as input file
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/auxclog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/auxclog.c b/src/cmd/auxclog.c index a426e072..aa558336 100644 --- a/src/cmd/auxclog.c +++ b/src/cmd/auxclog.c @@ -34,7 +34,10 @@ main(int argc, char **argv) exits("usage"); } - fd = open(argv[1], OREAD); + if(strcmp(argv[1], "-") == 0) + fd = 1; + else + fd = open(argv[1], OREAD); if(fd < 0){ fprint(2, "%s: can't open %s: %r\n", argv0, argv[1]); exits("open"); |