/[tar]/tar/src/rmt.c
ViewVC logotype

Diff of /tar/src/rmt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by eggert, Wed Sep 24 19:11:45 2003 UTC revision 1.30 by eggert, Thu Nov 13 06:23:23 2003 UTC
# Line 314  see the file named COPYING for details." Line 314  see the file named COPYING for details."
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      }      }
# Line 395  top: Line 395  top:
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                }                }
# Line 408  top: Line 408  top:
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)
# Line 449  top: Line 449  top:
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);
# Line 515  top: Line 515  top:
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                  }                  }
# Line 525  top: Line 525  top:
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    
# Line 559  top: Line 559  top:
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:

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26