diff options
author | Bill Nottingham <notting@redhat.com> | 2009-05-20 13:44:59 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-05-20 13:44:59 -0400 |
commit | e8a00c3a91072e9d00b877f70266735375b9bdbf (patch) | |
tree | 205caf9f81d94dd60cae9e839d5b87bf3606b30e | |
parent | bef1a16c6cfb4f8249ad42a5798fdcd58978ab79 (diff) | |
download | anaconda-e8a00c3a91072e9d00b877f70266735375b9bdbf.tar.gz anaconda-e8a00c3a91072e9d00b877f70266735375b9bdbf.tar.xz anaconda-e8a00c3a91072e9d00b877f70266735375b9bdbf.zip |
Fix blank network device descriptions in the loader. (#501757)
This appears to be the source of the problem, and fixes the issue
in brief testing. It is completely baffling to me why this would only
manifest now; it's not like this code has changed since it was
added.
-rw-r--r-- | isys/devices.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isys/devices.c b/isys/devices.c index e312a43e9..1efff622b 100644 --- a/isys/devices.c +++ b/isys/devices.c @@ -178,6 +178,7 @@ storagedone: snprintf(path, 64, "/sys/class/net/%s/address", ent->d_name); fd = open(path, O_RDONLY); if (fd != -1) { + memset(buf, '\0', 64); if (read(fd, buf, 64) > 0) { int i; for (i = (strlen(buf)-1); isspace(buf[i]); i--) |