Skip to content

Commit

Permalink
[ssu] Do not accept empty fallback uuid file as deviceUid file. Fixes…
Browse files Browse the repository at this point in the history
… JB#45436
  • Loading branch information
rainemak committed Apr 9, 2019
1 parent fc5da0c commit eccfeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libssu/ssudeviceinfo.cpp
Expand Up @@ -323,7 +323,7 @@ QString SsuDeviceInfo::deviceUid()

foreach (const QString &filename, fallbackFiles) {
QFile machineId(filename);
if (machineId.open(QFile::ReadOnly | QFile::Text)) {
if (machineId.open(QFile::ReadOnly | QFile::Text) && machineId.size() > 0) {
QTextStream in(&machineId);
return normalizeUid(in.readAll());
}
Expand Down

0 comments on commit eccfeb1

Please sign in to comment.