From 3e9aa01a1cc9d3ae0bbcfcea86fcc0d157f47d6f Mon Sep 17 00:00:00 2001 From: Garry Zacheiss Date: Wed, 7 Nov 2001 00:11:20 +0000 Subject: [PATCH] butc-allow-comments-in-tapeconfig-20011106 continue to allow extra column for comments as was previously (afs 3.4a) the case --- src/butc/tcmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/butc/tcmain.c b/src/butc/tcmain.c index db5d084be..90859a3e7 100644 --- a/src/butc/tcmain.c +++ b/src/butc/tcmain.c @@ -355,7 +355,7 @@ static afs_int32 GetDeviceConfig(filename, config, portOffset) count = sscanf(line, "%s %s %s %u%s\n", tcapacity, tfmsize, devName, &aport, trest); - if (count == 4) { + if (count == 4 || count == 5) { if ( atocl(tcapacity, 'K', &capacity) ) { fprintf(stderr, "tapeconfig: Tape capacity parse error in: %s\n", line); ERROR_EXIT(-1); @@ -366,7 +366,7 @@ static afs_int32 GetDeviceConfig(filename, config, portOffset) } } else { count = sscanf(line, "%s %u%s\n", devName, &aport, trest); - if (count == 2) { + if (count == 2 || count == 3) { capacity = 0x7fffffff; fmSize = 0; } else { -- 2.39.5