mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #326] Vim has wrong CWD when run inside Firejail with the "tracelog" option #227
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brunonova on GitHub (Feb 26, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/326
Strange issue. I'm running Ubuntu 14.04.
This runs perfectly:
But if I add the
--tracelogoption to firejail, vim doesn't find the file and creates a new one instead.Running
:!pwdinside vim in normal mode, which should print the working directory, outputs a different path than the expected one.And it's not always the same path. The last time I executed it, the result was
/usr/share/vim/vim74/indent.I noticed this in Vim, but other programs may be affected as well.
@chiraag-nataraj commented on GitHub (Feb 27, 2016):
That's really odd...which version of Firejail are you running? I just tried what you suggested and it worked fine for me (
:!pwdoutputted/home/chiraag/as expected even with the--tracelogoption).@brunonova commented on GitHub (Feb 27, 2016):
I'm running the latest version from git
master.What distro are you using?
I forgot to say that this issue doesn't occur in
vim.tiny, which is the default version ofviin Ubuntu before installing thevimpackage.If I execute
vim -Dinside firejail with--tracelog:The working directory changed after "line 3 ...".
If I execute this without that option or outside Firejail, the working directory stays the same.
@chiraag-nataraj commented on GitHub (Feb 27, 2016):
I just tried this with vim (not vim.tiny) and I didn't get the issue with firejail 0.9.38 on Debian sid/experimental and Vim 7.4.
@brunonova commented on GitHub (Feb 28, 2016):
Hmm... I tested 0.9.38 (backported from Debian sid/Ubuntu Xenial) and I don't get the issue as well.
So this bug was introduced somewhere after 0.9.38 was released.
@brunonova commented on GitHub (Mar 8, 2016):
It seems the bug was introduced in commit
d4e6b2e. I tested that and the previous commit.The bug still exists in the latest commit.
@netblue30 commented on GitHub (Mar 9, 2016):
I'll look into it, thanks!
@manevich commented on GitHub (Jul 6, 2016):
I'm somehow overlooked this bug before.
@brunonova Thanks for reporting.