]> granicus.if.org Git - strace/commit
sock: fix decoding of SIOCSIFNAME
authorMike Frysinger <vapier@gentoo.org>
Tue, 21 Oct 2014 12:34:08 +0000 (08:34 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 31 Oct 2014 15:18:47 +0000 (15:18 +0000)
commitf27263d6d896d89958769ffd1139b4ca6748b865
tree1a220a91b0d0b02a63cf9dc392efe60fdf837608
parent8b5fbeea993f63d15d88f58693eaf0bb207907ef
sock: fix decoding of SIOCSIFNAME

The decoding of SIOCSIFNAME is incorrect.  It does not use
the ifr_index field to look things up, but ifr_newname.

* sock.c (sock_ioctl): Split out SIOCSIFNAME from SIOCGIFNAME and
display ifr_newname.
sock.c