D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/sendfile-2.1b-15.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.oRg0GR + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf sendfile-2.1b + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/sendfile-2.1b.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd sendfile-2.1b + rm -rf /home/pterjan/rpmbuild/BUILD/sendfile-2.1b-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/sendfile-2.1b-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sendfile-2.1b-fix-str-fmt.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + cp -af /usr/lib/rpm/mageia/config.guess /usr/lib/rpm/mageia/config.sub develop/ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.i7QDNz + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd sendfile-2.1b + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' ./makeconfig checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for unistd.h... (cached) yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for string.h... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... no checking for readline in -lreadline... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking for struct stat.st_blksize... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for working alloca.h... yes checking for alloca... yes checking return type of signal handlers... void checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking whether utime accepts a null argument... yes checking for gethostname... yes checking for gettimeofday... yes checking for mkdir... yes checking for socket... yes checking for uname... yes checking for strerror... yes checking for snprintf... yes configure: creating ./config.status config.status: creating ../src/config.h config.status: executing default-1 commands now in /home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src creating globals.h creating Makefile cd src; make make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c message.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c pstring.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c string.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c getline.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c lock.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c peername.c peername.c: In function 'peername': peername.c:80:29: error: passing argument 3 of 'getpeername' from incompatible pointer type [-Wincompatible-pointer-types] 80 | if ((getpeername(fd,&addr,&len)) < 0) return(remote_name); | ^~~~ | | | size_t * {aka long unsigned int *} In file included from peername.c:41: /usr/include/sys/socket.h:131:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} 131 | socklen_t *__restrict __len) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ make[1]: *** [Makefile:67: peername.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c utf7.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c io.c io.c: In function 'rmtmpdir': io.c:387:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 387 | chdir(cwd); | ^~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c utf7encode.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c sendmsg.c sendmsg.c: In function 'main': sendmsg.c:436:32: warning: '%s' directive output may be truncated writing up to 12287 bytes into a region of size 4091 [-Wformat-truncation=] 436 | snprintf(MAXS(line),"MSG %s",utf_msg); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:980, from sendmsg.c:62: In function 'snprintf', inlined from 'main' at sendmsg.c:436:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 5 and 12292 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c reply.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c net.c net.c: In function 'send_data': net.c:734:30: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 734 | sscanf(&reply[4],"%lld",&offset); | ~~~^ ~~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld net.c:778:48: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 778 | snprintf(MAXS(tmp),"resuming %s at byte %lld",iso_name,offset); | ~~~^ ~~~~~~ | | | | | off_t {aka long int} | long long int | %ld net.c:783:54: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 783 | snprintf(MAXS(tmp),"begin transfer of %s with %lld bytes",fname,size); | ~~~^ ~~~~ | | | | long long int off_t {aka long int} | %ld net.c:830:42: warning: format '%lld' expects argument of type 'long long int', but argument 6 has type 'off_t' {aka 'long int'} [-Wformat=] 830 | fprintf(stderr,"%s%s: %3d%% (%lld of %lld kB)\r", | ~~~^ | | | long long int | %ld 831 | tinfo,fname,percent, 832 | (bytes+offset-1)/1024+1,(size+offset-1)/1024+1); | ~~~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} net.c:830:50: warning: format '%lld' expects argument of type 'long long int', but argument 7 has type 'off_t' {aka 'long int'} [-Wformat=] 830 | fprintf(stderr,"%s%s: %3d%% (%lld of %lld kB)\r", | ~~~^ | | | long long int | %ld 831 | tinfo,fname,percent, 832 | (bytes+offset-1)/1024+1,(size+offset-1)/1024+1); | ~~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} net.c:896:28: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 896 | fprintf(stderr,"%lld kB, ",bytes/1024); | ~~~^ ~~~~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld net.c:898:28: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 898 | fprintf(stderr,"%lld byte, ",bytes); | ~~~^ ~~~~~ | | | | | off_t {aka long int} | long long int | %ld net.c: In function 'getreply': net.c:568:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 568 | snprintf(MAXS(msg),"server error: %s",&reply[4]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from net.c:71: In function 'snprintf', inlined from 'getreply' at net.c:568:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 15 and 4110 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c address.c address.c: In function 'destination': address.c:140:5: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result] 140 | symlink(tmp,userconfig); | ^~~~~~~~~~~~~~~~~~~~~~~ address.c:134:28: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=] 134 | snprintf(user,FLEN-1,"%s %s",pwe->pw_name,gecos); | ^~ ~~~~~ In file included from /usr/include/stdio.h:980, from address.c:53: In function 'snprintf', inlined from 'destination' at address.c:134:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ address.c: In function 'destination': address.c:190:33: warning: '/aliases' directive output may be truncated writing 8 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 190 | snprintf(MAXS(aliasfile),"%s/aliases",userconfig); | ^~~~~~~~ In function 'snprintf', inlined from 'destination' at address.c:190:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ address.c: In function 'destination': address.c:145:27: warning: '/msg@' directive output may be truncated writing 5 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 145 | snprintf(MAXS(tmp),"%s/msg@%s",userconfig,localhost); | ^~~~~ In function 'snprintf', inlined from 'destination' at address.c:145:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ address.c: In function 'destination': address.c:152:34: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 255 [-Wformat-truncation=] 152 | snprintf(recipient,FLEN-1,"%s",line); | ^~ ~~~~ In function 'snprintf', inlined from 'destination' at address.c:152:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 1 and 4096 bytes into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c wlock.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c spool.c spool.c: In function 'scanspool': spool.c:314:26: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 314 | sscanf(arg,"%lld %lld",&csize,&osize); | ~~~^ ~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld spool.c:314:31: warning: format '%lld' expects argument of type 'long long int *', but argument 4 has type 'off_t *' {aka 'long int *'} [-Wformat=] 314 | sscanf(arg,"%lld %lld",&csize,&osize); | ~~~^ ~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld spool.c: In function 'scanoutspool': spool.c:637:24: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 637 | sscanf(arg,"%lld",&size); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld spool.c: In function 'delete_sf': spool.c:791:29: warning: ' deleted' directive output may be truncated writing 8 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 791 | snprintf(MAXS(msg),"%s deleted",fname); | ^~~~~~~~ In file included from /usr/include/stdio.h:980, from spool.c:54: In function 'snprintf', inlined from 'delete_sf' at spool.c:791:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c getdate.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c fetchfile.c fetchfile.c: In function 'main': fetchfile.c:195:3: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 195 | getcwd(MAXS(swd)); | ^~~~~~~~~~~~~~~~~ fetchfile.c:224:5: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result] 224 | symlink(tmp,userconfig); | ^~~~~~~~~~~~~~~~~~~~~~~ fetchfile.c:476:5: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 476 | system(cmd); | ^~~~~~~~~~~ fetchfile.c: In function 'rexit': fetchfile.c:760:5: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 760 | system(rfilen); | ^~~~~~~~~~~~~~ fetchfile.c: In function 'get_file': fetchfile.c:1017:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1017 | write(shfd,line+4,strlen(line+4)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fetchfile.c:1114:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1114 | write(fileno(stdout),packet,chunk); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fetchfile.c:1126:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1126 | write(sdfd,packet,chunk); | ^~~~~~~~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'rexit': fetchfile.c:754:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4073 [-Wformat-truncation=] 754 | snprintf(MAXS(tmp),"cannot change back to %s",swd); | ^~ ~~~ In file included from /usr/include/stdio.h:980, from fetchfile.c:36: In function 'snprintf', inlined from 'rexit' at fetchfile.c:754:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'get_list': fetchfile.c:830:55: warning: '%s' directive output may be truncated writing up to 4091 bytes into a region of size 4067 [-Wformat-truncation=] 830 | snprintf(MAXS(tmp),"invalid answer from server: %s",line+4); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In function 'snprintf', inlined from 'get_list' at fetchfile.c:830:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 29 and 4120 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'init': fetchfile.c:1201:22: warning: '/config' directive writing 7 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 1201 | sprintf(configf,"%s/config",userconfig); | ^~~~~~~ In function 'sprintf', inlined from 'init' at fetchfile.c:1201:3: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 8 and 4103 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'init': fetchfile.c:1218:44: warning: '%s' directive writing up to 4095 bytes into a region of size 4072 [-Wformat-overflow=] 1218 | sprintf(tmp,"cannot create directory %s",userspool); | ^~ ~~~~~~~~~ In function 'sprintf', inlined from 'init' at fetchfile.c:1218:7: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 25 and 4120 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'init': fetchfile.c:1225:51: warning: '%s' directive writing up to 4095 bytes into a region of size 4065 [-Wformat-overflow=] 1225 | sprintf(tmp,"cannot create config directory %s",userconfig); | ^~ ~~~~~~~~~~ In function 'sprintf', inlined from 'init' at fetchfile.c:1225:7: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 32 and 4127 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'init': fetchfile.c:1231:45: warning: '%s' directive writing up to 4095 bytes into a region of size 4069 [-Wformat-overflow=] 1231 | sprintf(tmp,"cannot change to directory %s",userconfig); | ^~ ~~~~~~~~~~ In function 'sprintf', inlined from 'init' at fetchfile.c:1231:5: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 28 and 4123 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'init': fetchfile.c:1236:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 1236 | snprintf(MAXS(tmp),"cannot open %s",configf); | ^~ ~~~~~~~ In function 'snprintf', inlined from 'init' at fetchfile.c:1236:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 4108 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'main': fetchfile.c:337:39: warning: '%s' directive output may be truncated writing up to 12287 bytes into a region of size 4082 [-Wformat-truncation=] 337 | snprintf(MAXS(line),"no access to %s (try 'fetchfile -I' first)",tmp); | ^~ ~~~ In function 'snprintf', inlined from 'main' at fetchfile.c:337:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 41 and 12328 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'main': fetchfile.c:342:39: warning: '%s' directive output may be truncated writing up to 12287 bytes into a region of size 4082 [-Wformat-truncation=] 342 | snprintf(MAXS(line),"no access to %s (try 'fetchfile -I' first)",tmp); | ^~ ~~~ In function 'snprintf', inlined from 'main' at fetchfile.c:342:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 41 and 12328 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'main': fetchfile.c:457:26: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4092 [-Wformat-truncation=] 457 | snprintf(MAXS(cmd),"cd %s; PGPPATH='.' %s -sbaf " | ^~ 458 | "+secring=private.pgp +pubring=public.pgp <%s 2>/dev/null", 459 | userconfig,pgp_bin,pgptmp); | ~~~~~~~~~~ In function 'snprintf', inlined from 'main' at fetchfile.c:457:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 79 or more bytes (assuming 8269) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'main': fetchfile.c:481:33: warning: '%s' directive output may be truncated writing up to 12287 bytes into a region of size 4090 [-Wformat-truncation=] 481 | snprintf(MAXS(response),"AUTH %s",tmp); | ^~ ~~~ In function 'snprintf', inlined from 'main' at fetchfile.c:481:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 12293 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ fetchfile.c: In function 'main': fetchfile.c:495:34: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 495 | snprintf(MAXS(conffile),"%s/%s",swd,tmp); | ^ In function 'snprintf', inlined from 'main' at fetchfile.c:495:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c receive.c receive.c: In function 'list': receive.c:630:30: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 630 | printf("%3d) %s %9lld kB %s", | ~~~~^ | | | long long int | %9ld 631 | flp->id,flp->rdate,(flp->osize+1023)/1024,show_fname); | ~~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} receive.c: In function 'check_signature.part.0': receive.c:1697:27: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 255 [-Wformat-truncation=] 1697 | snprintf(MAXS(sigfile),"%s/%d.d.sig",userspool,flp->id); | ^~ ~~~~~~~~~ In file included from /usr/include/stdio.h:980, from receive.c:103: In function 'snprintf', inlined from 'check_signature.part.0' at receive.c:1697:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 4114 bytes into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'check_signature.part.0': receive.c:1717:25: warning: ' ' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 1717 | snprintf(MAXS(tmp),"%s %s %s 2>/dev/null",pgp_bin,pgpopt,sigfile); | ^ In function 'snprintf', inlined from 'check_signature.part.0' at receive.c:1717:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 15 and 4620 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'list': receive.c:670:39: warning: ' ' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 670 | snprintf(MAXS(showtar),"%s %s -f < %s/%d.d | %s tvf -", | ^ In function 'snprintf', inlined from 'list' at receive.c:670:6: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 12306) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'list': receive.c:680:39: warning: ' tvf ' directive output may be truncated writing 5 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 680 | snprintf(MAXS(showtar),"%s tvf %s/%d.d",tar_bin,userspool,flp->id); | ^~~~~ In function 'snprintf', inlined from 'list' at receive.c:680:6: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 10 and 8210 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'list': receive.c:677:41: warning: ' -d < ' directive output may be truncated writing 6 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 677 | snprintf(MAXS(showtar),"%s -d < %s/%d.d | %s tvf -", | ^~~~~~ In function 'snprintf', inlined from 'list' at receive.c:677:8: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 20 and 12315 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'list': receive.c:674:41: warning: ' -d < ' directive output may be truncated writing 6 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 674 | snprintf(MAXS(showtar),"%s -d < %s/%d.d | %s tvf -", | ^~~~~~ In function 'snprintf', inlined from 'list' at receive.c:674:8: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 20 and 12315 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1276:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 1276 | snprintf(MAXS(sfile),"%s/%d.d",userspool,flp->id); | ^ In function 'snprintf', inlined from 'receive_sf' at receive.c:1276:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 5 and 4110 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1194:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 1194 | snprintf(MAXS(sfile),"%s/%d.d",userspool,flp->id); | ^ In function 'snprintf', inlined from 'receive_sf' at receive.c:1194:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 5 and 4110 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1218:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 1218 | snprintf(MAXS(tmp),"%s -d < %s > %s",bzip2_bin,sfile,tmpfile); | ^~ ~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1218:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 10 and 12295 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1254:40: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4089 and 8184 [-Wformat-truncation=] 1254 | snprintf(MAXS(cmd),"%s %s -f < %s > '%s'",pgp_bin,pgpvm,sfile,fname); | ^~ ~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1254:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 13 or more bytes (assuming 8203) into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1168:32: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4089 and 8184 [-Wformat-truncation=] 1168 | "%s %s -f < %s/%d.d",pgp_bin,pgpvm,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1167:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 12 or more bytes (assuming 8202) into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1165:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 1165 | snprintf(MAXS(cmd),"%s -d < %s/%d.d",gzip_bin,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1165:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 8211 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1163:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 1163 | snprintf(MAXS(cmd),"%s -d < %s/%d.d",bzip2_bin,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1163:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 8211 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:888:38: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4089 and 8184 [-Wformat-truncation=] 888 | snprintf(MAXS(cmd),"%s %s -f < %s/%d.d > %s", | ^~ 889 | pgp_bin,pgpvm,userspool,flp->id,tartmp); | ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:888:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 15 or more bytes (assuming 12300) into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:959:33: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4092 and 8187 [-Wformat-truncation=] 959 | snprintf(MAXS(cmd),"%s tf %s/%d.d",tar_bin,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:959:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 8209 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:957:33: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4092 and 8187 [-Wformat-truncation=] 957 | snprintf(MAXS(cmd),"%s tf %s",tar_bin,tartmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:957:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 5 and 8195 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:954:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 954 | snprintf(MAXS(cmd),"%s -d < %s/%d.d | %s tf -", | ^~ 955 | gzip_bin,userspool,flp->id,tar_bin); | ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:954:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 19 and 12314 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:951:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 951 | snprintf(MAXS(cmd),"%s -d < %s/%d.d | %s tf -", | ^~ 952 | bzip2_bin,userspool,flp->id,tar_bin); | ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:951:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 19 and 12314 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1032:34: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4091 and 8186 [-Wformat-truncation=] 1032 | snprintf(MAXS(cmd),"%s xvf %s/%d.d 2>%s", | ^~ 1033 | tar_bin,userspool,flp->id,error_log); | ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1032:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 12308 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1030:34: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4091 and 8186 [-Wformat-truncation=] 1030 | snprintf(MAXS(cmd),"%s xvf %s 2>%s",tar_bin,tartmp,error_log); | ^~ ~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1030:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 12294 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1027:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 1027 | snprintf(MAXS(cmd),"%s -d < %s/%d.d | %s xvf - 2>%s", | ^~ 1028 | gzip_bin,userspool,flp->id,tar_bin,error_log); | ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1027:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 23 and 16413 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:1024:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 1024 | snprintf(MAXS(cmd),"%s -d < %s/%d.d | %s xvf - 2>%s", | ^~ 1025 | bzip2_bin,userspool,flp->id,tar_bin,error_log); | ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:1024:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 23 and 16413 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:814:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 814 | snprintf(MAXS(cmd),"%s -d < %s/%d.d",gzip_bin,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:814:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 8211 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:812:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4090 and 8185 [-Wformat-truncation=] 812 | snprintf(MAXS(cmd),"%s -d < %s/%d.d",bzip2_bin,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:812:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 8211 bytes into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'receive_sf': receive.c:801:38: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4089 and 8184 [-Wformat-truncation=] 801 | snprintf(MAXS(cmd),"%s %s -f < %s/%d.d",pgp_bin,pgpvm,userspool,flp->id); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'receive_sf' at receive.c:801:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 12 or more bytes (assuming 8202) into a destination of size 8191 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ receive.c: In function 'renumber': receive.c:1791:42: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 1791 | snprintf(MAXS(tmp),"cannot change to %s",userspool); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'renumber' at receive.c:1791:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c sendfile.c sendfile.c: In function 'main': sendfile.c:1165:32: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 1165 | sscanf(line,"SIZE %lld %lld",&size,&orgsize); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfile.c:1165:37: warning: format '%lld' expects argument of type 'long long int *', but argument 4 has type 'off_t *' {aka 'long int *'} [-Wformat=] 1165 | sscanf(line,"SIZE %lld %lld",&size,&orgsize); | ~~~^ ~~~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfile.c:1218:34: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1218 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1218:39: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1218 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1353:30: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1353 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1353:35: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1353 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1746:32: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1746 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1746:37: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1746 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c: In function 'forward': sendfile.c:2352:59: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 2352 | if (str_neq_nocase("SIZE",line,4)) sscanf(arg+1,"%lld",&size); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfile.c: In function 'list_spool': sendfile.c:2634:30: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 2634 | printf("%s@%s : %s (%lld KB)\n", | ~~~^ | | | long long int | %ld 2635 | oflp->to,hlp->host,file,(oflp->size+512)/1024); | ~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} sendfile.c: In function 'linkspeed': sendfile.c:2549:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 2549 | fscanf(inf,"%d",&speed); | ^~~~~~~~~~~~~~~~~~~~~~~ sendfile.c: In function 'cleanup': sendfile.c:1955:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3835 and 4090 [-Wformat-truncation=] 1955 | snprintf(MAXS(line),"LOG %s %s",pw_name,outlogtmp); | ^~ ~~~~~~~~~ In file included from /usr/include/stdio.h:980, from sendfile.c:127: In function 'snprintf', inlined from 'cleanup' at sendfile.c:1955:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 4356 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'cleanup': sendfile.c:1984:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3835 and 4090 [-Wformat-truncation=] 1984 | snprintf(MAXS(line),"LOG %s %s",pw_name,outlogtmp); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'cleanup' at sendfile.c:1984:8: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 4356 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'pgp_sign': sendfile.c:2108:37: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 4083 [-Wformat-truncation=] 2108 | snprintf(MAXS(tmp),"shell-call: %s",cmd); | ^~ ~~~ In function 'snprintf', inlined from 'pgp_sign' at sendfile.c:2108:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 8204 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'pgp_sign': sendfile.c:2127:29: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 2127 | snprintf(MAXS(sign),"SIGN %s",tmp); | ^~ ~~~ In function 'snprintf', inlined from 'pgp_sign' at sendfile.c:2127:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 4101 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'linkspeed': sendfile.c:2538:30: warning: '/speeds' directive output may be truncated writing 7 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 2538 | snprintf(MAXS(speeddir),"%s/speeds",userspool); | ^~~~~~~ In function 'snprintf', inlined from 'linkspeed' at sendfile.c:2538:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'linkspeed': sendfile.c:2545:30: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 2545 | snprintf(MAXS(hostfile),"%s/%s",speeddir,host); | ^ In function 'snprintf', inlined from 'linkspeed' at sendfile.c:2545:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'notespeed': sendfile.c:2590:30: warning: '/speeds' directive output may be truncated writing 7 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 2590 | snprintf(MAXS(speeddir),"%s/speeds",userspool); | ^~~~~~~ In function 'snprintf', inlined from 'notespeed' at sendfile.c:2590:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'notespeed': sendfile.c:2597:30: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 2597 | snprintf(MAXS(hostfile),"%s/%s",speeddir,host); | ^ In function 'snprintf', inlined from 'notespeed' at sendfile.c:2597:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:825:31: warning: '/.sendfile_' directive output may be truncated writing 11 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 825 | snprintf(MAXS(outlogtmp),"%s/.sendfile_%d.log",userspool,pid); | ^~~~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:825:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 17 and 4122 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:848:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4066 [-Wformat-truncation=] 848 | snprintf(MAXS(tmp),"the user spool directory is: %s",userspool); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:848:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 30 and 4125 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:869:24: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Wformat-truncation=] 869 | "tmp-file %s does already exist and cannot be deleted",tartmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:868:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 51 and 4146 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:874:24: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Wformat-truncation=] 874 | "tmp-file %s does already exist and cannot be deleted",ziptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:873:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 51 and 4146 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:879:24: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Wformat-truncation=] 879 | "tmp-file %s does already exist and cannot be deleted",texttmp); | ^~ ~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:878:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 51 and 4146 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:884:24: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Wformat-truncation=] 884 | "tmp-file %s does already exist and cannot be deleted",pgptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:883:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 51 and 4146 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:889:24: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Wformat-truncation=] 889 | "tmp-file %s does already exist and cannot be deleted",stdintmp); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:888:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 51 and 4146 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:973:48: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4074 [-Wformat-truncation=] 973 | snprintf(MAXS(tmp),"cannot open tmp-file %s",stdintmp); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:973:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 22 and 4117 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:980:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4066 [-Wformat-truncation=] 980 | snprintf(MAXS(tmp),"error while writing stdin to %s",stdintmp); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:980:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 30 and 4125 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1598:34: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 4090 [-Wformat-truncation=] 1598 | snprintf(MAXS(tmp),"FILE %s",utf_name); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1598:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 8197 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1564:40: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 510 [-Wformat-truncation=] 1564 | snprintf(MAXS(rto),"%s@%s",oflp->to,hlp->host); | ^~ In function 'snprintf', inlined from 'main' at sendfile.c:1564:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 511 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1718:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4087 [-Wformat-truncation=] 1718 | snprintf(MAXS(cmd),"%s < '%s' > %s",zprg,file,ziptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1718:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 9 or more bytes (assuming 4104) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1794:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4058 [-Wformat-truncation=] 1794 | snprintf(MAXS(tmp),"remote site does not support file of %s",line); | ^~ ~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1794:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 38 and 4133 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1305:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 1305 | snprintf(MAXS(tmp),"shell-call: %s",cmd); | ^~ ~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1305:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 4108 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1334:32: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4092 [-Wformat-truncation=] 1334 | snprintf(MAXS(cmd),"%s < %s > %s",zprg,tartmp,ziptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1334:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 7 or more bytes (assuming 8197) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1336:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 1336 | snprintf(MAXS(tmp),"shell-call: %s",cmd); | ^~ ~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1336:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 4108 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1409:32: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 4090 [-Wformat-truncation=] 1409 | snprintf(MAXS(tmp),"FILE %s",utf_name); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1409:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 8197 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1418:34: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 4090 [-Wformat-truncation=] 1418 | snprintf(MAXS(tmp),"FILE %s",utf_name); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1418:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 8197 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1427:34: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 4090 [-Wformat-truncation=] 1427 | snprintf(MAXS(tmp),"FILE %s",utf_name); | ^~ ~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1427:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 8197 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1375:38: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 510 [-Wformat-truncation=] 1375 | snprintf(MAXS(rto),"%s@%s",oflp->to,hlp->host); | ^~ In function 'snprintf', inlined from 'main' at sendfile.c:1375:8: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 511 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1048:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4065 [-Wformat-truncation=] 1048 | snprintf(MAXS(tmp),"cannot access spool directory %s",userspool); | ^~ ~~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1048:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 31 and 4126 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1132:50: warning: '%s' directive output may be truncated writing up to 4091 bytes into a region of size 4080 [-Wformat-truncation=] 1132 | snprintf(MAXS(tmp),"cannot send %s : %s",file,reply+4); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1132:6: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 16 or more bytes (assuming 4107) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1149:47: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3828 and 4083 [-Wformat-truncation=] 1149 | snprintf(MAXS(cmd),"%s -dc %s > %s",GZIP,sdfn,ziptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1149:8: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 4363 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1147:50: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3826 and 4081 [-Wformat-truncation=] 1147 | snprintf(MAXS(cmd),"%s -d < %s > %s",BZIP2,sdfn,ziptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1147:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 15 and 4365 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfile.c: In function 'main': sendfile.c:1145:50: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3824 and 4079 [-Wformat-truncation=] 1145 | snprintf(MAXS(cmd),"%s -d <%s|%s>%s",BZIP2,sdfn,GZIP,ziptmp); | ^~ ~~~~~~ In function 'snprintf', inlined from 'main' at sendfile.c:1145:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 17 and 4367 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DLINUX -c sendfiled.c sendfiled.c: In function 'main': sendfiled.c:599:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off_t' {aka 'long int'} [-Wformat=] 599 | case 'f': printf("%lld\n",free_space()); exit(0); | ~~~^ ~~~~~~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfiled.c:1309:28: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 1309 | if (sscanf(arg,"%lld",&size) != 1) { | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfiled.c:1521:28: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 1521 | sscanf(tmp,"%lld",&spoolsize); | ~~~^ ~~~~~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfiled.c:1820:38: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1820 | snprintf(MAXS(tmp),"%lld %lld",flp->csize,flp->osize); | ~~~^ ~~~~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfiled.c:1820:43: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1820 | snprintf(MAXS(tmp),"%lld %lld",flp->csize,flp->osize); | ~~~^ ~~~~~~~~~~ | | | | long long int off_t {aka long int} | %ld sendfiled.c:1834:22: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off_t' {aka 'long int'} [-Wformat=] 1834 | printf("230 %lld bytes have already been transmitted.\r\n",transmitted); | ~~~^ ~~~~~~~~~~~ | | | | long long int off_t {aka long int} | %ld sendfiled.c:2091:35: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 2091 | printf("250-%d %s %s %lld ",flp->id,flp->fname,tmp,flp->csize); | ~~~^ ~~~~~~~~~~ | | | | long long int off_t {aka long int} | %ld sendfiled.c:2175:24: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off_t' {aka 'long int'} [-Wformat=] 2175 | printf("231 %lld bytes will follow.\r\n",size); | ~~~^ ~~~~ | | | | long long int off_t {aka long int} | %ld sendfiled.c:2306:26: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off_t' {aka 'long int'} [-Wformat=] 2306 | printf("260 %lld MB free\r\n",f); | ~~~^ ~ | | | | long long int off_t {aka long int} | %ld sendfiled.c: In function 'get_sizes': sendfiled.c:2841:62: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'rlim_t' {aka 'long unsigned int'} [-Wformat=] 2841 | if (getrlimit(RLIMIT_FSIZE,&rl)==0) snprintf(MAXS(max),"%llu",rl.rlim_cur); | ~~~^ ~~~~~~~~~~~ | | | | | rlim_t {aka long unsigned int} | long long unsigned int | %lu sendfiled.c:2858:17: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 2858 | sscanf(s1,"%lld",size); | ~~~^ ~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfiled.c:2859:17: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 2859 | sscanf(s2,"%lld",osize); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfiled.c: In function 'main': sendfiled.c:1006:7: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1006 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:1007:7: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 1007 | setegid(0); | ^~~~~~~~~~ sendfiled.c:1395:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1395 | write(lfd,"\n",1); | ^~~~~~~~~~~~~~~~~ sendfiled.c:1399:7: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1399 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:1400:7: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 1400 | setegid(0); | ^~~~~~~~~~ sendfiled.c:1413:19: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 1413 | if (rgid) setegid(rgid); | ^~~~~~~~~~~~~ sendfiled.c:1414:19: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1414 | if (ruid) seteuid(ruid); | ^~~~~~~~~~~~~ sendfiled.c:1422:9: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1422 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:1423:9: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 1423 | setegid(0); | ^~~~~~~~~~ sendfiled.c:1729:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1729 | write(lfd,"\n",1); | ^~~~~~~~~~~~~~~~~ sendfiled.c:1768:7: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1768 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:1769:7: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 1769 | setegid(0); | ^~~~~~~~~~ sendfiled.c:1976:7: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1976 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:1977:7: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 1977 | setegid(0); | ^~~~~~~~~~ sendfiled.c:2060:7: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2060 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:2061:7: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 2061 | setegid(0); | ^~~~~~~~~~ sendfiled.c:2154:9: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2154 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:2155:9: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 2155 | setegid(0); | ^~~~~~~~~~ sendfiled.c:2186:9: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2186 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:2187:9: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 2187 | setegid(0); | ^~~~~~~~~~ sendfiled.c:2283:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2283 | write(lfd,tmp,strlen(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'msg2tty': sendfiled.c:2581:7: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2581 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:2582:7: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 2582 | setegid(0); | ^~~~~~~~~~ sendfiled.c:2619:3: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2619 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:2620:3: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 2620 | setegid(0); | ^~~~~~~~~~ sendfiled.c: In function 'mail2user': sendfiled.c:2653:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 2653 | chdir(pwe->pw_dir); | ^~~~~~~~~~~~~~~~~~ sendfiled.c:2654:3: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 2654 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:2655:3: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 2655 | setegid(0); | ^~~~~~~~~~ sendfiled.c: In function 'sfsd': sendfiled.c:3035:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 3035 | write(lockf,tmp,strlen(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'bounce_file': sendfiled.c:3765:5: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 3765 | chown(userspool,pwe->pw_uid,pwe->pw_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c:3773:5: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3773 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:3774:5: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 3774 | setegid(0); | ^~~~~~~~~~ sendfiled.c:3775:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 3775 | chdir(cwd); | ^~~~~~~~~~ sendfiled.c:3784:5: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3784 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:3785:5: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 3785 | setegid(0); | ^~~~~~~~~~ sendfiled.c:3786:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 3786 | chdir(cwd); | ^~~~~~~~~~ sendfiled.c:3796:5: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3796 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:3797:5: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 3797 | setegid(0); | ^~~~~~~~~~ sendfiled.c:3798:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 3798 | chdir(cwd); | ^~~~~~~~~~ sendfiled.c:3849:3: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3849 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:3850:3: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 3850 | setegid(0); | ^~~~~~~~~~ sendfiled.c:3851:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 3851 | chdir(cwd); | ^~~~~~~~~~ sendfiled.c: In function 'check_userspool': sendfiled.c:3965:52: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 3965 | if (mkdir(userspool,S_IRUSR|S_IWUSR|S_IXUSR)==0) chown(userspool,ruid,rgid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c:3974:7: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result] 3974 | symlink(tmp,userconfig); | ^~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c:3976:7: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result] 3976 | symlink(userspool,tmp); | ^~~~~~~~~~~~~~~~~~~~~~ sendfiled.c:3981:3: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 3981 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:3982:3: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 3982 | setegid(0); | ^~~~~~~~~~ sendfiled.c: In function 'openuserlog': sendfiled.c:4074:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 4074 | write(lfd,tmp,strlen(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'send_file_stdout': sendfiled.c:4104:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 4104 | write(fileno(stdout),packet,bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'sudo': sendfiled.c:4217:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 4217 | chdir(pwe->pw_dir); | ^~~~~~~~~~~~~~~~~~ sendfiled.c:4218:3: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 4218 | seteuid(0); | ^~~~~~~~~~ sendfiled.c:4219:3: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 4219 | setegid(0); | ^~~~~~~~~~ sendfiled.c:4237:3: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 4237 | system(cmd); | ^~~~~~~~~~~ sendfiled.c: In function 'free_space': sendfiled.c:2789:29: warning: '/.' directive output may be truncated writing 2 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 2789 | snprintf(MAXS(spool),"%s/.",userspool); | ^~ In file included from /usr/include/stdio.h:980, from sendfiled.c:179: In function 'snprintf', inlined from 'free_space' at sendfiled.c:2789:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 3 and 4098 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'send_msg': sendfiled.c:2921:28: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=] 2921 | snprintf(MAXS(line),"MSG %s",tmp); | ^~ ~~~ In function 'snprintf', inlined from 'send_msg' at sendfiled.c:2921:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 5 and 4100 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'send_spooldata': sendfiled.c:3294:33: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4087 [-Wformat-truncation=] 3294 | snprintf(MAXS(tmp),"sending %s to %s",isoname,to); | ^~ ~~~~~~~ In function 'snprintf', inlined from 'send_spooldata' at sendfiled.c:3294:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 13 or more bytes (assuming 4108) into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'saftserver_connect': sendfiled.c:3385:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4073 [-Wformat-truncation=] 3385 | snprintf(MAXS(tmp),"opening connection to %s:%d",server,SAFT); | ^~ ~~~~~~ In function 'snprintf', inlined from 'saftserver_connect' at sendfiled.c:3385:7: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 27 and 4122 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'saftserver_connect': sendfiled.c:3391:45: warning: ' has no internet-address' directive output may be truncated writing 24 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 3391 | case -3: snprintf(error,MAXLEN-1,"%s has no internet-address",server); | ^~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'saftserver_connect' at sendfiled.c:3391:11: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 25 and 4120 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'saftserver_connect': sendfiled.c:3390:69: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4069 [-Wformat-truncation=] 3390 | case -2: snprintf(error,MAXLEN-1,"cannot open connection to %s",server); | ^~ ~~~~~~ In function 'snprintf', inlined from 'saftserver_connect' at sendfiled.c:3390:11: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 27 and 4122 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'saftserver_connect': sendfiled.c:3391:45: warning: ' has no internet-address' directive output may be truncated writing 24 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 3391 | case -3: snprintf(error,MAXLEN-1,"%s has no internet-address",server); | ^~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'saftserver_connect' at sendfiled.c:3391:11: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 25 and 4120 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'check_outspool': sendfiled.c:3696:29: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=] 3696 | snprintf(MAXS(oshfn),"%s",dire->d_name); | ^ In function 'snprintf', inlined from 'check_outspool' at sendfiled.c:3696:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin_snprintf' output between 1 and 256 bytes into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'sfsd': sendfiled.c:3082:42: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4082 [-Wformat-truncation=] 3082 | snprintf(MAXS(tmp),"connected to %s",hlp->host); | ^~ In function 'snprintf', inlined from 'sfsd' at sendfiled.c:3082:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 14 and 4109 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'sfsd': sendfiled.c:3153:50: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4082 [-Wformat-truncation=] 3153 | snprintf(MAXS(tmp),"connected to %s (forward redirection)", | ^~ In function 'snprintf', inlined from 'sfsd' at sendfiled.c:3153:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 36 and 4131 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'msg2tty': sendfiled.c:2540:27: warning: '/config/tty@' directive output may be truncated writing 12 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 2540 | snprintf(MAXS(msgcf),"%s/config/tty@%s",userspool,localhost); | ^~~~~~~~~~~~ In function 'snprintf', inlined from 'msg2tty' at sendfiled.c:2540:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 13 and 4363 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'restricted': sendfiled.c:2733:30: warning: '/config/restrictions' directive output may be truncated writing 20 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 2733 | snprintf(MAXS(killfile),"%s/config/restrictions",userspool); | ^~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'restricted' at sendfiled.c:2733:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 21 and 4116 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'check_userspool': sendfiled.c:3962:32: warning: '/config' directive output may be truncated writing 7 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 3962 | snprintf(MAXS(userconfig),"%s/config",userspool); | ^~~~~~~ In function 'snprintf', inlined from 'check_userspool' at sendfiled.c:3962:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'main': sendfiled.c:1737:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4087 and 12277 [-Wformat-truncation=] 1737 | snprintf(MAXS(tmp),"cat %s/%s %s/%s | %s && rm -f %s/%s %s/%s", | ^~ ...... 1740 | rpipe, | ~~~~~ In function 'snprintf', inlined from 'main' at sendfiled.c:1737:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 24 or more bytes (assuming 20499) into a destination of size 12287 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'main': sendfiled.c:1041:37: warning: '@' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 1041 | snprintf(MAXS(utfsender),"%s@%s %s",arg,peer,real); | ^ In function 'snprintf', inlined from 'main' at sendfiled.c:1041:2: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 3 and 12280 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sendfiled.c: In function 'main': sendfiled.c:949:48: warning: '/notify ' directive output may be truncated writing 8 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 949 | snprintf(MAXS(notification),"%s/notify ",userconfig); | ^~~~~~~~ In function 'snprintf', inlined from 'main' at sendfiled.c:949:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4095 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b/src' make: *** [Makefile:8: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.i7QDNz (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.i7QDNz (%build) I: [iurt_root_command] ERROR: chroot