/[rdiff-backup]/rdiff-backup/rdiff_backup/rpath.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/rpath.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.85 by bescoto, Thu Sep 1 01:55:27 2005 UTC revision 1.86 by bescoto, Wed Sep 7 17:33:25 2005 UTC
# Line 782  class RPath(RORPath): Line 782  class RPath(RORPath):
782    
783          def chown(self, uid, gid):          def chown(self, uid, gid):
784                  """Set file's uid and gid"""                  """Set file's uid and gid"""
785                  self.conn.C.lchown(self.path, uid, gid)                  if self.issym():
786                            try: self.conn.C.lchown(self.path, uid, gid)
787                            except AttributeError:
788                                    log.Log("Warning: lchown missing, cannot change ownership "
789                                                    "of symlink " + self.path, 2)
790                    else: os.chown(self.path, uid, gid)
791                  self.data['uid'] = uid                  self.data['uid'] = uid
792                  self.data['gid'] = gid                  self.data['gid'] = gid
793    

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26