#4282: startproject doesn't honour umask
------------------------------------+---------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: django-admin.py
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
------------------------------------+---------------------------------------
Ticket #1651 fixed the problem of manage.py not being made executable by
copying *all* the permission bits (not just the executable flags). This
means that the user's umask doesn't work, e.g.:
{{{
$ umask 077
$ touch foo
$ ls -l foo
-rw------- 1 talex talex 0 2007-05-12 13:27 foo
$ PYTHONPATH=trunk ./trunk/django/bin/django-admin.py startproject mysite
$ ls -l mysite/settings.py
-rw-r--r-- 1 talex talex 2804 2007-05-12 13:28 mysite/settings.py
}}}
I discovered this whilst trying to make a Zero Install package for Django.
Everything in the Zero Install cache is read-only, so startproject fails
with:
{{{
File
"/var/cache/0install.net/implementations/sha1new=262c95b5a7cc34f525408b675106e4e4ae3494cc/django/core/management.py",
line 799, in startproject
fp = open(main_settings_file, 'w')
IOError: [Errno 13] Permission denied: '.../site/settings.py'
}}}
Thanks,
--
Ticket URL: <http://code.djangoproject.com/ticket/4282>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---