aboutsummaryrefslogtreecommitdiff
path: root/src/copyout.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-09-08 11:40:36 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-09-08 11:40:36 +0000
commit79cfd7332a806375fe1e37577c75249da216a830 (patch)
tree14169e9a0b7fc30ec03a666f4f4c5e1ae73941de /src/copyout.c
parent9ed2400f6fda9cc5a8066d301a82e45cbdd1c862 (diff)
downloadcpio-79cfd7332a806375fe1e37577c75249da216a830.tar.gz
cpio-79cfd7332a806375fe1e37577c75249da216a830.tar.bz2
Display the annoying 'truncating inode number' message only if the user wishes it.
Diffstat (limited to 'src/copyout.c')
-rw-r--r--src/copyout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/copyout.c b/src/copyout.c
index 0015e35..88cedf9 100644
--- a/src/copyout.c
+++ b/src/copyout.c
@@ -355,7 +355,7 @@ write_out_header (struct new_cpio_header *file_hdr, int out_des)
}
}
- if ((file_hdr->c_ino >> 16) != 0)
+ if ((warn_option & CPIO_WARN_TRUNCATE) && (file_hdr->c_ino >> 16) != 0)
error (0, 0, _("%s: truncating inode number"), file_hdr->c_name);
/* Debian hack: The type of dev_t has changed in glibc. Fixed output
@@ -385,7 +385,7 @@ write_out_header (struct new_cpio_header *file_hdr, int out_des)
short_hdr.c_magic = 070707;
short_hdr.c_dev = makedev (file_hdr->c_dev_maj, file_hdr->c_dev_min);
- if ((file_hdr->c_ino >> 16) != 0)
+ if ((warn_option & CPIO_WARN_TRUNCATE) && (file_hdr->c_ino >> 16) != 0)
error (0, 0, _("%s: truncating inode number"), file_hdr->c_name);
short_hdr.c_ino = file_hdr->c_ino & 0xFFFF;

Return to:

Send suggestions and report system problems to the System administrator.