summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
Commit message (Collapse)AuthorAgeFilesLines
* Typos.Georg Brandl2007-03-101-1/+1
|
* Patch #1516912: improve Modules support for OpenVMS.Neal Norwitz2006-07-101-5/+5
|
* spread the extern "C" { } magic pixie dust around. Python itself builds nowAnthony Baxter2006-04-131-0/+11
| | | | | using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
* Some more changes to make code compile under a C++ compiler.Anthony Baxter2006-04-111-1/+1
|
* Patch #931938: prevent setting sys.prefix to ""Georg Brandl2006-02-201-0/+6
|
* squash compiler warning on Mac OSX 10.3Skip Montanaro2006-01-051-0/+4
|
* Change type on variable to silence gcc 4 warning. Call signature was found atBrett Cannon2005-09-161-1/+1
| | | | http://darwinsource.opendarwin.org/10.4.2/dyld-43.1/src/dyldAPIs.cpp .
* Bug 1003471: Python 1.5.2 security vulnerability still present in 2.3.4Tim Peters2004-08-081-4/+10
| | | | | | | | | | | | | | That's the title of the report, but the hole was probably plugged since Python 2.0. See corresponding checkin to PC/getpathp.c: a crucial precondition for joinpath() was neither documented nor verified, and there are so many callers with so many conditional paths that no "eyeball analysis" is satisfactory. Now Python dies with a fatal error if the precondition isn't satisfied, instead of allowing a buffer overrun. NOT TESTED! The Windows version of the patch was, but not this one. I don't feel like waiting for someone to notice the patch I attached to the bug report. If it doesn't compile, sorry, but fix it <wink>. If it does compile, it's "obviously correct".
* Modules/getpath.c now compiles properly under OS X when using theBrett Cannon2004-06-261-1/+1
| | | | | | | --disable-framework build; header file was protected in an #if using the wrong macro to check. Closes bug #978645.
* Change comment from C++ style to C.Brett Cannon2004-06-241-1/+1
|
* Fix for #932977: MacOSX does not pass the whole pathname in argv[0] forJack Jansen2004-06-031-0/+17
| | | | | | | | #!-scripts, only the filename part, and this can lead to incorrect initialization of sys.path and sys.executable if there is another python on $PATH before the one used in #!. The fix was picked up from the darwinports crowd, thanks!
* Make sure zip_path is null-terminated, since it's on the stackNeal Norwitz2002-12-311-0/+1
|
* PEP 302 + zipimport:Just van Rossum2002-12-301-0/+18
| | | | | | | | | | | | | - new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.
* Squashed compiler warnings by adding casts, making sure prototypes are inJack Jansen2002-12-231-1/+1
| | | | scope and looking at types.
* Patch #614055: Support OpenVMS.Martin v. Löwis2002-12-061-0/+4
|
* SF # 602108 ensure string is null terminated after strncpyNeal Norwitz2002-09-131-0/+1
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-4/+0
|
* Changed logic for finding python home in Mac OS X framework Pythons.Jack Jansen2001-12-021-47/+45
| | | | | | Now sys.executable points to the executable again, in stead of to the shared library. The latter is used only for locating the python home.
* Be more rigorous about making pathnames absolute, to address SF bugGuido van Rossum2001-09-281-53/+58
| | | | | | | | | | #424002. Refactor init_path_from_argv0() and rename to copy_absolute(); add absolutize() which does the same in-place. Clean up whitespace (leading tabs -> spaces, delete trailing spaces/tabs).
* With WITH_NEXT_FRAMEWORK defined we now also expect a normal PythonJack Jansen2001-08-151-6/+20
| | | | | | installation. If there is no LANDMARK we assume we're a bare framework in the install directory (again WITH_NEXT_FRAMEWORK only).
* Put conditional S_ISDIR definition(s) into pyport.h.Martin v. Löwis2001-08-081-9/+0
|
* Add -E command line switch (ignore environment variables like PYTHONHOMENeil Schemenauer2001-07-231-1/+1
| | | | and PYTHONPATH).
* Build now happens in toplevel directory, not Modules. Don't monkey withNeil Schemenauer2001-01-241-12/+1
| | | | VPATH.
* Clean up some comments and the default VERSION.Guido van Rossum2001-01-231-3/+2
|
* Minor ANSIfication: lib_python no longer needs to be initializedFred Drake2000-09-281-4/+1
| | | | dynamically to support K&R C since we are requiring an ANSI compiler.
* Fix buffer overflow vulnerabilities in calculate_path(). Code usedJeremy Hylton2000-09-271-16/+41
| | | | | | | copied strings from environment variables and argv[0] into fixed-length buffers without checking their length. Reported by Stan Bubrouski; advice on fix from John Viega.
* fix bug #114290: when interpreter's argv[0] has a relative path makeJeremy Hylton2000-09-251-2/+19
| | | | | it absolute by joining it with getcwd result. avoid including unnecessary ./ in path but do not test for ../ (more complicated)
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters2000-07-221-1/+1
| | | | possible.
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-5/+5
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* ANSI-fied sources, converted to four-space indentation.Fred Drake2000-07-081-372/+363
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Trent Mick: use size_t instead of int where appropriate (various spots).Guido van Rossum2000-06-281-9/+9
|
* Patch from M.-A. Lemburg:Jeremy Hylton2000-05-261-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | Python on UNIX now trusts PYTHONHOME unconditionally Modules/getpath.c: Landmark changed to os.py. Setting PYTHONHOME now unconditionally sets sys.prefix (and sys.exec_prefix). No further checks are done whether the standard lib can be found in that location or not. This is in sync with the PC subdir getpath implementations. PC/getpathp.c: Landmark changed to os.py. PC/os2vacpp/getpathp.c: Landmark changed to os.py. Note: BAW's checkin on exceptions.c eliminates earlier concerns about a bogus PYTHONHOME value leading to a core dump. Instead it causes a useless sys.path and prevents imports.
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-1/+1
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Patches by William Lewis for Nextstep descendants.Guido van Rossum1999-01-271-1/+25
|
* When following symlinks to the real executable, use a loop so aGuido van Rossum1998-04-291-1/+2
| | | | | symlink to a symlink can work. (Jack)
* - Use Py_GetPythonHome() instead of getenv("PYTHONHOME").Guido van Rossum1998-02-061-2/+4
| | | | - Don't print error messages when Py_FrozenFlag is set.
* Instead of a single exists(), differentiate between files, modules,Guido van Rossum1998-01-191-13/+70
| | | | | executable files, and directories. When expecting a module, we also look for the .pyc or .pyo file.
* Remove "Lib/test" from the default path; this is now a package!Guido van Rossum1997-12-101-1/+0
|
* Change sharedmodules to lib-dynload.Guido van Rossum1997-10-201-6/+6
| | | | ### If you still have sharedmodules in your Modules/Setup file, remove it! ###
* Globally renamed join() to joinpath() to avoid compilation error on Cray.Guido van Rossum1997-08-201-22/+22
|
* Use string.h, not strings.hGuido van Rossum1997-06-021-1/+1
|
* Make delimiter and separator static for K&R C.Guido van Rossum1997-05-201-3/+11
|
* Keep gcc -Wall happy.Guido van Rossum1997-05-131-2/+2
|
* Another change suggested by Donn Cave -- forget "step 5", whichGuido van Rossum1997-05-121-21/+2
| | | | searches /usr/local, /usr and /.
* Fix problem reported by Donn Cave: if VPATH is an absolute path, itGuido van Rossum1997-05-121-18/+25
| | | | | would always be a hit. Prevent this by only using VPATH if we know we are in the build directory.
* Removed two unused static function: string_addsep() andBarry Warsaw1997-04-111-98/+61
| | | | | | | | | string_append(). These must be artifacts of GvR's rewrite. Fixed some typos in the leading comment (and re-filled the paragraphs). Hope you don't mind, Guido.