oops wrong place ... On Wed, Jul 15, 2015 at 6:09 PM, Vadim Kochan <vadim4j@xxxxxxxxx> wrote: > On Wed, Jul 15, 2015 at 10:56:48AM -0400, Scott Moser wrote: >> On Wed, 15 Jul 2015, Karel Zak wrote: >> >> > On Tue, Jul 14, 2015 at 04:16:56PM -0400, Scott Moser wrote: >> > > It seems like if the user provided you with a GUID, sfdisk should trust >> > > them, or at very least exit failure if it refuses to use the provided >> > > GUID. >> > > >> > > Thoughts? >> > >> > It's bug, the "unknown" partition type is expected. Fixed in git tree: >> > >> > # sfdisk -ql /dev/sdc >> > Device Start End Sectors Size Type >> > /dev/sdc1 2048 1023966 1021919 499M Linux filesystem >> > >> > >> > # sfdisk --part-type /dev/sdc 1 $(uuidgen) >> > ... >> > >> > >> > # sfdisk -ql /dev/sdc >> > Device Start End Sectors Size Type >> > /dev/sdc1 2048 1023966 1021919 499M unknown >> > >> > >> > Thanks for your report! >> Thanks for the quick fix. >> >> Is it sane for me to assume this is fixed in any version of >> util-linux > 2.26.2 ? >> -- >> To unsubscribe from this list: send the line "unsubscribe util-linux" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html > Would you please test a following fix ? > > diff --git a/misc/ss.c b/misc/ss.c > index 03f92fa..3a826e4 100644 > --- a/misc/ss.c > +++ b/misc/ss.c > @@ -683,8 +683,8 @@ static inline void sock_addr_set_str(inet_prefix *prefix, char **ptr) > > static inline char *sock_addr_get_str(const inet_prefix *prefix) > { > - char *tmp ; > - memcpy(&tmp, prefix->data, sizeof(char *)); > + char *tmp; > + memcpy(&tmp, &prefix->data[0], sizeof(char *)); > return tmp; > } > -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html