Giter Site home page Giter Site logo

Comments (6)

joelthelion avatar joelthelion commented on May 19, 2024

Hi and thanks for the report! Are you using the latest git version or a previous release? I've had the same problem in the past, but I thought it was fixed now.

Also, do you have an idea of the command that caused the problem? What distro are you using?

from autojump.

luciferous avatar luciferous commented on May 19, 2024

I have the same problem. I'm using autojump 14 on OS X installed via brew.

To reproduce just cd as root into another directory:

$ ls -l ~/.autojump_py
-rw-------  1 neuman  staff  17025 Mar 28 11:29 /Users/neuman/.autojump_py
$ sudo -s
# cd /tmp
# ls -l /Users/neuman/.autojump_py
-rw-------  1 root  staff  17025 Mar 28 11:44 /Users/neuman/.autojump_py
# exit
$ j
Problem with autojump database, trying to recover from backup...
Traceback (most recent call last):
  File "/usr/local/bin/autojump", line 132, in <module>
    path_dict=open_dic(dic_file)
  File "/usr/local/bin/autojump", line 117, in open_dic
    shutil.copy(dic_file+".bak",dic_file)
  [...snip...]
IOError: [Errno 13] Permission denied: '/Users/neuman/.autojump_py'

from autojump.

jamilbk avatar jamilbk commented on May 19, 2024

I can confirm this as a bug as well. Using autojump 14 on OSX, but appears to be present in the latest git as well.

Same issue as luciferous.

from autojump.

joelthelion avatar joelthelion commented on May 19, 2024

I've just pushed a tentative fix. I can't test it because sudo is properly better configured under Arch, so I can't reproduce the problem. However I believe this patch should fix the problem. Can you confirm?

from autojump.

jamilbk avatar jamilbk commented on May 19, 2024

I can't do any in-depth testing right now, but so far the issue looks fixed! ~/.autojump_py didn't change ownership after a sudo -s session.

Thanks!

from autojump.

joelthelion avatar joelthelion commented on May 19, 2024

Great! I'll close the issue for now; don't hesitate to re-open if needed.

I'll probably wait a week or so to make sure everything is ok, then I'll make a new release.

from autojump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.