mirror of
https://github.com/iustin/mt-st.git
synced 2026-01-08 21:03:07 +00:00
Remove obsolete test from do_show_options()
Remove from do_show_options() the now obsolete kernel version test that has never worked correctly. Problem reported by Emmanuel Florac.
This commit is contained in:
3
mt.c
3
mt.c
@@ -736,9 +736,6 @@ static int do_show_options(int mtfd, cmdef_tr *cmd, int argc, char **argv)
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
sscanf(uts.release, "%d.%d.%d", &i, &tapeno, &tapemode);
|
sscanf(uts.release, "%d.%d.%d", &i, &tapeno, &tapemode);
|
||||||
if (i < 2 || tapeno < 6 || tapemode < 26)
|
|
||||||
printf("Your kernel (%d.%d.%d) may be too old for this command.\n",
|
|
||||||
i, tapeno, tapemode);
|
|
||||||
|
|
||||||
if (fstat(mtfd, &stat) < 0) {
|
if (fstat(mtfd, &stat) < 0) {
|
||||||
perror(tape_name);
|
perror(tape_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user