Thread View: comp.bugs.2bsd
1 messages
1 total messages
Started by Steven M. Schultz
Fri, 11 Aug 1989 04:45
tcopy muffs arg count check
Author: Steven M. Schultz
Date: Fri, 11 Aug 1989 04:45
Date: Fri, 11 Aug 1989 04:45
45 lines
1374 bytes
1374 bytes
Subject: tcopy muffs arg count check
Index: ucb/tcopy.c 2.10BSD
Description:
tcopy complains if you attempt to copy a tape to a file, i.e. by
giving a second argument.
Repeat-By:
try:
tcopy /dev/rmt0 /tmp/junk
note the complaint about argument usage:
Usage: tcopy src [dest]
using tcopy to examine a tape:
tcopy /dev/rmt0
works fine.
Fix:
I thought this had made it in to the distribution, apparently not.
Apply the patch below.
*** tcopy.c.old Thu Mar 12 01:42:31 1987
--- tcopy.c Thu Aug 10 15:21:52 1989
***************
*** 44,50 ****
register n, nw, inp, outp;
struct mtop op;
! if (argc <=1 || argc >= 3) {
fprintf(stderr, "Usage: tcopy src [dest]\n");
exit(1);
}
--- 44,50 ----
register n, nw, inp, outp;
struct mtop op;
! if (argc <=1 || argc > 3) {
fprintf(stderr, "Usage: tcopy src [dest]\n");
exit(1);
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads