Mercurial > cpython-lru_cache-weakref
view Mac/PythonLauncher/main.m @ 84007:dbfbdf2b5c19 3.3
Fix #17967: For ftp urls CWD to target instead of hopping to each directory
towards target. This fixes a bug where target is accessible, but parent
directories are restricted.
| author | Senthil Kumaran <senthil@uthcode.com> |
|---|---|
| date | Sat, 01 Jun 2013 08:27:06 -0700 |
| parents | a19c20c5e5c7 |
| children | 738cba2bf849 |
line wrap: on
line source
// // main.m // PythonLauncher // // Created by Jack Jansen on Fri Jul 19 2002. // Copyright (c) 2002 __MyCompanyName__. All rights reserved. // #import <Cocoa/Cocoa.h> #include <unistd.h> int main(int argc, const char *argv[]) { char *home = getenv("HOME"); if (home) chdir(home); return NSApplicationMain(argc, argv); }
