Comment 2 for bug 416782

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Thanks, it looks like this bug was introduced by Kay when adjusting the string util functions:

committer: Kay Sievers <email address hidden>
timestamp: Wed 2009-05-20 17:57:52 +0200
message:
  use more efficient string copying

                /* free our own name, another process may wait for us */
- util_strlcpy(ifr.ifr_newname, udev_device_get_sysname(dev), IFNAMSIZ);
- util_strlcat(ifr.ifr_newname, "_rename", IFNAMSIZ);
+ util_strscpy(ifr.ifr_newname, IFNAMSIZ, udev_device_get_sysname(dev));
+ util_strscpy(ifr.ifr_newname, IFNAMSIZ, "_rename");