New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/snap-update-ns: fix mount rules for font sharing #4136
Conversation
The mount rules should refer to directories, not files (the traling slash is relevant). Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
5ad5cb1
to
e39528a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
echo "The plug is connected by default" | ||
snap interfaces | MATCH "$CONNECTED_PATTERN" | ||
|
||
echo "Then the snap is able to desktop files and directories" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/able to/able to access/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming from a patch by @sergiocazzolato
Codecov Report
@@ Coverage Diff @@
## master #4136 +/- ##
==========================================
+ Coverage 75.62% 75.63% +0.01%
==========================================
Files 435 435
Lines 37583 37613 +30
==========================================
+ Hits 28421 28450 +29
+ Misses 7173 7170 -3
- Partials 1989 1993 +4
Continue to review full report at Codecov.
|
This patch fixes a nasty bug that results in wrong list of made changes. This is caused by how the for / range syntax operates in golang. Before this patch the list of changes made contains N copies of the first change. This seems to be caused by golang using a hidden temporary variable that gets overwritten but has the same address. We add the address of that variable to the list of changes. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
The mount rules should refer to directories, not files (the traling
slash is relevant).
Signed-off-by: Zygmunt Krynicki me@zygoon.pl