edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

MacVim unable to run setuid root #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Yes I understand that this is uncommon usage and many might seem dubious,
but doing this simplifies my life in certain ways ;) Mentioning this
because I suspect it might be a quick code change although it's not obvious
to me the best way to sort it out.

If you do this:
chmod ugo+srws Vim MacVim
chown root Vim MacVim

And then attempt to execute MacVim as a normal user you will receive errors
similar to this in system.log:

Dec 20 16:10:28 My-MacBook-Pro [0x0-0x176176].org.vim.MacVim[27155]:  
Reason: unsafe use of @executable_path in
/Users/me/BuildMacVim/vim7/src/MacVim/build/Release/MacVim.app/Contents/MacOS/Ma
cVim
with restricted binary

Looks like the references to @executable_path are related to Sparkle and
PSMTabBarControl.

Oddly enough when I start MacVim using the 'mvim' shell script it runs
fine. I don't yet see why.

MacVim version: Snapshot 51 pulled from git 09/20/2009
OS X version: 10.6.2

Thanks!

Original issue reported on code.google.com by Elotemuy...@gmail.com on 20 Dec 2009 at 10:49

GoogleCodeExporter commented 9 years ago
I have no idea how to "fix" this on my end.  I'm guessing you can fix it 
yourself by doing the same chmod/chown 
on the libraries inside the subfolders of Frameworks/.

Original comment by bjorn.winckler@gmail.com on 23 Dec 2009 at 5:04