From: Garry Zacheiss Date: Wed, 26 Dec 2001 20:26:09 +0000 (+0000) Subject: STABLE12-butc-allow-comments-in-tapeconfig-20011226 X-Git-Tag: openafs-stable-1_2_3~75 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c6b4400f87895ccbfbeb02eadddd17bedada194a;p=packages%2Fo%2Fopenafs.git STABLE12-butc-allow-comments-in-tapeconfig-20011226 continue to allow extra column for comments as was previously (afs 3.4a) the case --- 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 {