Skip to content

Commit

Permalink
Merge branch 'jb45436' into 'master'
Browse files Browse the repository at this point in the history
[ssu] Do not accept empty fallback uuid file as deviceUid file. Fixes JB#45436

See merge request mer-core/ssu!26
  • Loading branch information
rainemak committed Apr 9, 2019
2 parents fc5da0c + eccfeb1 commit abb5545
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 abb5545

Please sign in to comment.