Comment # 8 on bug 1084640 from
(In reply to Martin Li��ka from comment #7)
> The package update landed to Factory, but I still can see the failure:
> https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:
> Gcc7/open-iscsi/standard/x86_64
> 
> I double checked that by building the package locally.

That is still the old code.

The error message is complaining about this line in libopeniscsiusr/sysfs.c:

> [   44s] sysfs.c: In function '_iscsi_host_id_of_session':
> [   44s] sysfs.c:326:48: error: '/iscsi_host/' directive output may be truncated writing 12 bytes into a region of size between 1 and 4096 [-Werror=format-truncation=]
> [   44s]   snprintf(sys_scsi_host_dir_path, PATH_MAX, "%s/iscsi_host/",
> [   44s]                                                 ^~~~~~~~~~~~
> [   44s] In file included from /usr/include/stdio.h:862,
> [   44s]                  from sysfs.c:22:
> [   44s] /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 13 and 4108 bytes into a destination of size 4096
> [   44s]    return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
> [   44s]           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [   44s]         __bos (__s), __fmt, __va_arg_pack ());
> [   44s]         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

But that code has been changed is now looks like:

>         strncpy(sys_scsi_host_dir_path, sys_dev_path, PATH_MAX);
>         strncat(sys_scsi_host_dir_path, iscsi_host_dir_str,
>                 PATH_MAX - iscsi_host_dir_strlen);

So you need to trigger a rebuild?


You are receiving this mail because: