home *** CD-ROM | disk | FTP | other *** search
- From decwrl!ucbvax!ucsd!sdcsvax!ucsdhub!esosun!seismo!uunet!allbery Fri Mar 24 22:22:30 PST 1989
- Article 804 of comp.sources.misc:
- Path: decwrl!ucbvax!ucsd!sdcsvax!ucsdhub!esosun!seismo!uunet!allbery
- From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
- Newsgroups: comp.sources.misc
- Subject: v06i040: patches for "redir"
- Message-ID: <49803@uunet.UU.NET>
- Date: 25 Feb 89 19:22:01 GMT
- Sender: allbery@uunet.UU.NET
- Reply-To: djk@munnari.UUCP
- Lines: 30
- Approved: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
-
- Posting-number: Volume 6, Issue 40
- Submitted-by: djk@munnari.UUCP
- Archive-name: redir.unpat1
-
- [Unofficial patches; keep the original in case the author posts official ones.
- ++bsa]
-
- { Something seems to have munged the tabs on v06i031 before they got to uunet.
- I had to unexpand -a, and manually expand a couple of unexpand's mistakes. }
-
- Here are some improvements to make "redir" a bit more robust:
-
- *** redir.c Mon Feb 6 19:06:28 1989
- --- redir.new.c Mon Feb 6 19:02:33 1989
- ***************
- *** 151,154 ****
- --- 151,161 ----
- close(fd);
- }
- +
- + if (argv[optind] == NULL) {
- + fprintf(stderr, USAGESTRING, argv[0]);
- + exit(1);
- + }
- execvp(argv[optind], argv + optind);
- + fprintf(stderr, "%s: ", argv[0]);
- + perror(argv[optind]);
- }
-
- David Keegel (djk%munnari.oz.AU@uunet.UU.NET)
-
-
-