Skip to content

Commit

Permalink
fix: other user failed to create workdir
Browse files Browse the repository at this point in the history
Change workdir from /tmp/linglong-layer/UUID to /tmp/linglong-layer-UUID.

Log:
  • Loading branch information
kamiyadm committed Dec 25, 2023
1 parent 5712ee4 commit 5da7112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linglong/package/layer_packager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace linglong::package {

LayerPackager::LayerPackager(const QString &workDir)
: workDir(
QStringList{ workDir, QUuid::createUuid().toString(QUuid::Id128) }.join(QDir::separator()))
QStringList{ workDir, QUuid::createUuid().toString(QUuid::Id128) }.join("-"))
{
util::ensureDir(this->workDir);
}
Expand Down

0 comments on commit 5da7112

Please sign in to comment.