aboutsummaryrefslogtreecommitdiff
path: root/src/copyout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/copyout.c')
-rw-r--r--src/copyout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copyout.c b/src/copyout.c
index a5a8931..63785ff 100644
--- a/src/copyout.c
+++ b/src/copyout.c
@@ -48,7 +48,7 @@ read_for_checksum (int in_file_des, int file_size, char *file_name)
48 { 48 {
49 bytes_read = read (in_file_des, buf, BUFSIZ); 49 bytes_read = read (in_file_des, buf, BUFSIZ);
50 if (bytes_read < 0) 50 if (bytes_read < 0)
51 error (1, errno, _("cannot read checksum for %s"), file_name); 51 error (PAXEXIT_FAILURE, errno, _("cannot read checksum for %s"), file_name);
52 if (bytes_read == 0) 52 if (bytes_read == 0)
53 break; 53 break;
54 if (bytes_left < bytes_read) 54 if (bytes_left < bytes_read)
@@ -57,7 +57,7 @@ read_for_checksum (int in_file_des, int file_size, char *file_name)
57 crc += buf[i] & 0xff; 57 crc += buf[i] & 0xff;
58 } 58 }
59 if (lseek (in_file_des, 0L, SEEK_SET)) 59 if (lseek (in_file_des, 0L, SEEK_SET))
60 error (1, errno, _("cannot read checksum for %s"), file_name); 60 error (PAXEXIT_FAILURE, errno, _("cannot read checksum for %s"), file_name);
61 61
62 return crc; 62 return crc;
63} 63}
@@ -606,7 +606,7 @@ process_copy_out ()
606 else 606 else
607 { 607 {
608 if (fstat (out_file_des, &file_stat)) 608 if (fstat (out_file_des, &file_stat))
609 error (1, errno, _("standard output is closed")); 609 error (PAXEXIT_FAILURE, errno, _("standard output is closed"));
610 output_is_special = 610 output_is_special =
611#ifdef S_ISBLK 611#ifdef S_ISBLK
612 S_ISBLK (file_stat.st_mode) || 612 S_ISBLK (file_stat.st_mode) ||

Return to:

Send suggestions and report system problems to the System administrator.