summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-17 15:13:47 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-17 15:13:47 +0000
commit18b8880cdb8fb99facafe79517bf850635affbca (patch)
tree5c97324af2dd78f797002c285b95beb557367165 /src/lib/Client
parentac750124ef95fcde48792f3842752e29d7ce7d16 (diff)
downloadbcfg2-18b8880cdb8fb99facafe79517bf850635affbca.tar.gz
bcfg2-18b8880cdb8fb99facafe79517bf850635affbca.tar.bz2
bcfg2-18b8880cdb8fb99facafe79517bf850635affbca.zip
Fix intermediate path symlink issue in POSIX (Resolves Ticket #465)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3457 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/POSIX.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index 965227845..f571e544c 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -190,13 +190,13 @@ class POSIX(Bcfg2.Client.Tools.Tool):
parent = "/".join(entry.get('name').split('/')[:-1])
if parent:
try:
- os.lstat(parent)
+ os.stat(parent)
except:
self.logger.debug('Creating parent path for directory %s' % (entry.get('name')))
for idx in xrange(len(parent.split('/')[:-1])):
current = '/'+'/'.join(parent.split('/')[1:2+idx])
try:
- sloc = os.lstat(current)
+ sloc = os.stat(current)
try:
if not S_ISDIR(sloc[ST_MODE]):
os.unlink(current)
@@ -279,7 +279,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
parent = "/".join(entry.get('name').split('/')[:-1])
if parent:
try:
- os.lstat(parent)
+ os.stat(parent)
except:
self.logger.debug('Creating parent path for config file %s' % \
(entry.get('name')))
@@ -287,7 +287,7 @@ class POSIX(Bcfg2.Client.Tools.Tool):
for next in parent.split('/')[1:]:
current += next + '/'
try:
- sloc = os.lstat(current)
+ sloc = os.stat(current)
try:
if not S_ISDIR(sloc[ST_MODE]):
self.logger.debug('%s is not a directory; recreating' \