Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not import unused modules; fix the pylint tests | Wojciech Siewierski | 2017-05-06 | 1 | -1/+0 |
| | |||||
* | Do not strip the current working directoy from sys.path | Wojciech Siewierski | 2017-05-06 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #861. This code was assuming that cwd is being added to `sys.path` but according to my investigation it isn't true. On the other hand, the script directory is added to `sys.path`, which would be `/usr/bin/` in this case. `/usr/bin/` is neither a vulnerability, nor affected by this code, so I'm removing it. I'm pasting my brief tests of the Python module loading behavior: ``` [root@de5476e76587 test]# tree . ├── main.py └── ranger └── __init__.py 1 directory, 2 files [root@de5476e76587 test]# cat main.py import ranger print("Done") [root@de5476e76587 test]# cat ranger/__init__.py print("I'm a bad module doing bad stuff to good people.") [root@de5476e76587 test]# ./main.py I'm a bad module doing bad stuff to good people. Done [root@de5476e76587 test]# cd ../ [root@de5476e76587 ~]# ./test/main.py I'm a bad module doing bad stuff to good people. Done [root@de5476e76587 ~]# cd - /root/test [root@de5476e76587 test]# mv main.py .. [root@de5476e76587 test]# ../main.py Done [root@de5476e76587 test]# PATH=..:$PATH main.py Done [root@de5476e76587 test]# mv ../main.py . [root@de5476e76587 test]# cd .. [root@de5476e76587 ~]# PATH=$PWD/test:$PATH main.py I'm a bad module doing bad stuff to good people. Done [root@de5476e76587 ~]# ``` | ||||
* | Python 3 division: Import `division` from `__future__` | nfnty | 2017-01-21 | 1 | -1/+1 |
| | |||||
* | linting: Python 2 compat: Import from `__future__` | nfnty | 2017-01-17 | 1 | -4/+6 |
| | |||||
* | linting: pylint and flake8 | nfnty | 2017-01-17 | 1 | -7/+7 |
| | |||||
* | Fix mktemp invocation to work on Mac OS X and Linux | Jesse Byler | 2015-06-10 | 1 | -1/+1 |
| | | | | | | | | | | | mktemp on Mac OS X (and probably all BSDs) just returns an error when invoked without any arguments. The -t option used in this change is interpreted differently on Mac OS X and Linux, and is deprecated on Linux, but this invocation works as expected on both. See discussion at https://unix.stackexchange.com/questions/30091 Another alternative would be to use Python's tempfile module: https://docs.python.org/2/library/tempfile.html | ||||
* | ranger.py: fixed issues with $tempfile in embedded shell | Eiichi Sato | 2015-03-28 | 1 | -2/+2 |
| | | | | | | | | | | | | Previously, $tempfile (namely, /tmp/chosendir) was not cleaned up correctly when the ranger process quit in `pwd` without moving to other directory. This causes permission errors in multi-user environments trying to overwrite $tempfile created by a different user. This commit solves the problem in two ways: - Correctly clean up temporary files - Avoid writing to the same temporary by using mktemp(1) | ||||
* | Neater copyright header | hut | 2015-03-19 | 1 | -3/+2 |
| | |||||
* | update email address | hut | 2014-12-11 | 1 | -1/+1 |
| | |||||
* | Changed email address in source code | hut | 2013-08-08 | 1 | -1/+1 |
| | | | | | Since lavabit.com ceased providing email services, I had to change my address from hut lavabit com to hut lepus uberspace de. | ||||
* | updated rest of the copyright notices | hut | 2013-02-22 | 1 | -1/+1 |
| | |||||
* | update email address (romanz@lavabit.com -> hut@lavabit.com) | hut | 2013-02-22 | 1 | -1/+1 |
| | |||||
* | replaced tabs with 4 spaces in all python files | hut | 2013-02-10 | 1 | -3/+3 |
| | | | | | | | | | PEP 8 (Style Guide for Python Code) suggests the use of 4 spaces: http://www.python.org/dev/peps/pep-0008/#indentation If you need to use tools like "git blame", you can use the -w option to ignore this commit entirely. Patches will continue to work if you substitute tabs with 4 spaces everywhere except in the Makefile. | ||||
* | shorten all copyright messages for better readability | hut | 2012-03-14 | 1 | -13/+1 |
| | |||||
* | Updated copyright headers | hut | 2011-10-10 | 1 | -1/+1 |
| | | | | As much as I hate this, it has to be done | ||||
* | README: polished, removed INSTALL | hut | 2011-10-05 | 1 | -5/+2 |
| | |||||
* | ranger.py: made the argument optional in embedded bash script | hut | 2011-10-04 | 1 | -15/+16 |
| | |||||
* | Fixed minor issue in ranger.py | hut | 2011-10-01 | 1 | -3/+3 |
| | |||||
* | another correction of the bash wrapper scripts | hut | 2011-09-28 | 1 | -1/+2 |
| | |||||
* | shortened ranger.py | hut | 2011-09-28 | 1 | -6/+3 |
| | |||||
* | sanitized bash wrapper scripts, reformulated BUGS section in manual | hut | 2011-09-28 | 1 | -2/+2 |
| | |||||
* | minor optimization in ranger.py | hut | 2011-09-28 | 1 | -6/+1 |
| | |||||
* | improved bash wrappers in ranger.py and man page | hut | 2011-09-28 | 1 | -5/+7 |
| | |||||
* | ranger.py: More reliable check for whether ./ranger.py is started | hut | 2011-05-07 | 1 | -1/+1 |
| | |||||
* | ranger.py: minor change, more general exception handling | hut | 2011-04-05 | 1 | -1/+1 |
| | |||||
* | improved ranger.py | hut | 2011-04-05 | 1 | -2/+10 |
| | |||||
* | Polished ranger.py | hut | 2010-10-16 | 1 | -3/+3 |
| | |||||
* | Small simplification of ranger.py | hut | 2010-09-29 | 1 | -3/+2 |
| | |||||
* | Don't write any bytecode with --clean option | hut | 2010-09-29 | 1 | -0/+10 |
| | |||||
* | ranger.py: Return 0 on success in embedded script | hut | 2010-09-22 | 1 | -1/+1 |
| | |||||
* | simplify ranger.py | hut | 2010-09-22 | 1 | -25/+11 |
| | |||||
* | ranger.py Fixed embedded shellscript (quotes for bash) | hut | 2010-09-11 | 1 | -2/+2 |
| | |||||
* | ranger.py: fixed escape in embedded shellscript | hut | 2010-09-11 | 1 | -1/+1 |
| | |||||
* | Changed default config dir to $XDG_CONFIG_HOME/ranger | hut | 2010-08-28 | 1 | -1/+5 |
| | |||||
* | main: catch SystemExit and return the exit value | hut | 2010-06-18 | 1 | -2/+3 |
| | |||||
* | renamed "--fail-if-run" to the more accurate "--fail-unless-cd" | hut | 2010-06-09 | 1 | -1/+1 |
| | | | | The old name, --fail-if-run, is still valid and working. | ||||
* | Reverted hashbang for ranger.py. | hut | 2010-06-09 | 1 | -1/+1 |
| | | | | | It causes an error here: /usr/bin/env: python -O: No such file or directory | ||||
* | Changed hashbang line to "#!/usr/bin/env python" | hut | 2010-06-09 | 1 | -1/+1 |
| | |||||
* | Run python with flag "-O" by default | hut | 2010-05-10 | 1 | -1/+1 |
| | | | | | This will discard assert statements which are unnecessary for end users. | ||||
* | Fixed bug #65 by adding flag "--fail-if-run" | hut | 2010-04-26 | 1 | -1/+1 |
| | |||||
* | ranger.py: removed whitespace | hut | 2010-04-12 | 1 | -4/+0 |
| | |||||
* | reverted a part of 45cf5174. Allow "source ranger ranger" again | hut | 2010-04-01 | 1 | -8/+7 |
| | | | | This is OK since it comes at almost no cost | ||||
* | removed the cd-after-exit hack | hut | 2010-03-29 | 1 | -13/+8 |
| | | | | | | | | | Fear not. You still get the same functionality by using a function like: ranger() { $(which ranger) $@ && cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)" } | ||||
* | ranger.__init__: don't implicitly import ranger.__main__ | hut | 2010-03-26 | 1 | -1/+1 |
| | |||||
* | Changed license to the GNU General Public License | hut | 2010-02-28 | 1 | -12/+14 |
| | |||||
* | ranger.py: fixed cd-after-exit with spaces in directory | hut | 2010-02-24 | 1 | -1/+1 |
| | |||||
* | ranger.py: removed unnecessary code | hut | 2010-02-15 | 1 | -1/+1 |
| | |||||
* | ranger.py: reverted cd-after-exit to the old way | hut | 2010-02-14 | 1 | -10/+1 |
| | | | | | | | | This breaks cd-after-exit after Ctrl+C again, but enables compatibility with zsh which I prefer over the former. If you only use bash, you can safely revert this commit unless future changes make it break. | ||||
* | ranger.py: more simple '--debug' flag check | hut | 2010-02-14 | 1 | -1/+1 |
| | |||||
* | ranger.py: improved handling of bad import | hut | 2010-01-26 | 1 | -1/+2 |
| |