diff options
Diffstat (limited to 'bin/pax/buf_subs.c')
-rw-r--r-- | bin/pax/buf_subs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pax/buf_subs.c b/bin/pax/buf_subs.c index 6e42e52..d6c4ae9 100644 --- a/bin/pax/buf_subs.c +++ b/bin/pax/buf_subs.c @@ -47,6 +47,7 @@ static const char rcsid[] = #include <sys/stat.h> #include <errno.h> #include <unistd.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include "pax.h" @@ -111,6 +112,11 @@ wr_start() wrblksz, BLKMULT); return(-1); } + if (wrblksz > MAXBLK_POSIX) { + paxwarn(0, "Write block size of %d larger than POSIX max %d, archive may not be portable", + wrblksz, MAXBLK_POSIX); + return(-1); + } /* * we only allow wrblksz to be used with all archive operations |