[issue4553] Results from os.path.islink and os.stat S_ISLNK do not match

2008-12-05 Thread Nicholas Patterson

New submission from Nicholas Patterson <[EMAIL PROTECTED]>:

See attached file, os.path.islink correctly identifies symlinks as 
symlinks, but S_ISLNK is not reporting them as such.

--
components: None
files: demo.txt
messages: 77079
nosy: npatters
severity: normal
status: open
title: Results from os.path.islink and os.stat S_ISLNK do not match
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file12245/demo.txt

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4553>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson

New submission from Nicholas Patterson :

Used the TarFile object to create a bzip2 compressed tar file (seems to
have worked fine).  Then used the extractall method to restore the
archive in a new location.  All the files appear to have the same
permissions and owner:group as before, but most of the directories
('state' is only exception) have different permissions and the
owner:group are set to the UID that was running the script in this case
root:root.

Partial original location listing
/opt/fallback> ls -l /opt/agilent/ipcore/02.01/config
total 112
drwxrwxrwx 2 agilent agilent  4096 Feb  3 14:07 dist
-rwxrwxrwx 1 agilent agilent   208 Feb  3 14:07 hostnameCache.xml
-rwxrwxrwx 1 agilent agilent  1000 Feb  3 14:07 hostnamecache.xsd
drwxr-xr-x 4 agilent agilent  4096 Feb  3 14:08 inuse
-rwxrwxrwx 1 agilent agilent  4019 Feb  3 14:07 log4cxx.properties
-rwxrwxrwx 1 agilent agilent  9437 Feb  3 14:07 log4cxx.xml_template
drwxrwxrwx 3 agilent agilent  4096 Feb  3 14:07 mebs
-rwxrwxrwx 1 agilent agilent  4283 Feb  3 14:07 protocol.xml
-rwxrwxrwx 1 agilent agilent  8339 Feb  3 14:07 registry.ini
drwxrwxrwx 2 agilent agilent  4096 Feb  3 14:07 state
-rwxrwxrwx 1 agilent agilent   886 Feb  3 14:07 trunknamecache.xsd

Partial new location listing
/opt/fallback> ll config
total 120
drwxr-xr-x 6 rootroot 4096 Feb  3 16:38 ./
drwxrwxr-x 8 agilent agilent  4096 Feb  3 16:38 ../
drwxr-xr-x 2 rootroot 4096 Feb  3 16:38 dist/
-rwxrwxrwx 1 agilent agilent   208 Feb  3 14:07 hostnameCache.xml*
-rwxrwxrwx 1 agilent agilent  1000 Feb  3 14:07 hostnamecache.xsd*
drwxr-xr-x 4 rootroot 4096 Feb  3 16:38 inuse/
-rwxrwxrwx 1 agilent agilent  4019 Feb  3 14:07 log4cxx.properties*
-rwxrwxrwx 1 agilent agilent  9437 Feb  3 14:07 log4cxx.xml_template*
drwxr-xr-x 3 rootroot 4096 Feb  3 16:38 mebs/
-rwxrwxrwx 1 agilent agilent  4283 Feb  3 14:07 protocol.xml*
-rwxrwxrwx 1 agilent agilent  8339 Feb  3 14:07 registry.ini*
drwxrwxrwx 2 agilent agilent  4096 Feb  3 14:07 state/

--
components: None
messages: 81143
nosy: npatters
severity: normal
status: open
title: extractall method for TarFile objects not setting owner:group on 
directories
type: behavior
versions: Python 2.5

___
Python tracker 
<http://bugs.python.org/issue5151>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson

Nicholas Patterson  added the comment:

Using 2.5.0 on SLES 10 servers and 2.5.1 on Solaris 10 servers.  Have only 
tested SLES so far since that's our main platform.

___
Python tracker 
<http://bugs.python.org/issue5151>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson

Nicholas Patterson  added the comment:

Yep that fixed it, sorry to have used up your time.  Still a bit new to the 
search feature on the site, didn't notice the form defaulted to only searching 
on open bugs/issues.

___
Python tracker 
<http://bugs.python.org/issue5151>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com