314 |
if (debug_file == 0) |
if (debug_file == 0) |
315 |
{ |
{ |
316 |
report_numbered_error (errno); |
report_numbered_error (errno); |
317 |
exit (EXIT_FAILURE); |
return EXIT_FAILURE; |
318 |
} |
} |
319 |
setbuf (debug_file, 0); |
setbuf (debug_file, 0); |
320 |
} |
} |
395 |
if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) |
if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) |
396 |
{ |
{ |
397 |
report_error_message (N_("Seek offset out of range")); |
report_error_message (N_("Seek offset out of range")); |
398 |
exit (EXIT_FAILURE); |
return EXIT_FAILURE; |
399 |
} |
} |
400 |
count = nc; |
count = nc; |
401 |
} |
} |
408 |
case 2: whence = SEEK_END; break; |
case 2: whence = SEEK_END; break; |
409 |
default: |
default: |
410 |
report_error_message (N_("Seek direction out of range")); |
report_error_message (N_("Seek direction out of range")); |
411 |
exit (EXIT_FAILURE); |
return EXIT_FAILURE; |
412 |
} |
} |
413 |
count = lseek (tape, count, whence); |
count = lseek (tape, count, whence); |
414 |
if (count < 0) |
if (count < 0) |
449 |
DEBUG (_("rmtd: Premature eof\n")); |
DEBUG (_("rmtd: Premature eof\n")); |
450 |
|
|
451 |
report_error_message (N_("Premature end of file")); |
report_error_message (N_("Premature end of file")); |
452 |
exit (EXIT_FAILURE); /* exit status used to be 2 */ |
return EXIT_FAILURE; /* exit status used to be 2 */ |
453 |
} |
} |
454 |
} |
} |
455 |
status = full_write (tape, record_buffer, size); |
status = full_write (tape, record_buffer, size); |
515 |
if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) |
if (c10 / 10 != count || (negative ? c10 < nc : nc < c10)) |
516 |
{ |
{ |
517 |
report_error_message (N_("Seek offset out of range")); |
report_error_message (N_("Seek offset out of range")); |
518 |
exit (EXIT_FAILURE); |
return EXIT_FAILURE; |
519 |
} |
} |
520 |
count = nc; |
count = nc; |
521 |
} |
} |
525 |
if (mtop.mt_count != count) |
if (mtop.mt_count != count) |
526 |
{ |
{ |
527 |
report_error_message (N_("Seek offset out of range")); |
report_error_message (N_("Seek offset out of range")); |
528 |
exit (EXIT_FAILURE); |
return EXIT_FAILURE; |
529 |
} |
} |
530 |
mtop.mt_op = atoi (operation_string); |
mtop.mt_op = atoi (operation_string); |
531 |
|
|
559 |
DEBUG1 (_("rmtd: Garbage command %c\n"), command); |
DEBUG1 (_("rmtd: Garbage command %c\n"), command); |
560 |
|
|
561 |
report_error_message (N_("Garbage command")); |
report_error_message (N_("Garbage command")); |
562 |
exit (EXIT_FAILURE); /* exit status used to be 3 */ |
return EXIT_FAILURE; /* exit status used to be 3 */ |
563 |
} |
} |
564 |
|
|
565 |
respond: |
respond: |