[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] Problem with incorrect file owners
From: |
Александр Бойков |
Subject: |
[rdiff-backup-users] Problem with incorrect file owners |
Date: |
Mon, 15 Dec 2008 22:20:26 +0300 |
User-agent: |
Thunderbird 2.0.0.18 (X11/20081125) |
Hello.
Please, accept this patch, which checks for incorrect file owners:
*** rpath.py Mon Dec 15 22:08:46 2008
--- rpath.py Mon Dec 15 22:08:21 2008
***************
*** 787,793 ****
except AttributeError:
log.Log("Warning: lchown missing, cannot change
ownership "
"of symlink " + self.path, 2)
! else: os.chown(self.path, uid, gid)
self.data['uid'] = uid
self.data['gid'] = gid
--- 787,795 ----
except AttributeError:
log.Log("Warning: lchown missing, cannot change
ownership "
"of symlink " + self.path, 2)
! else:
! if (uid < 65535) and (gid < 65535):
! os.chown(self.path, uid, gid)
self.data['uid'] = uid
self.data['gid'] = gid
Without this patch rdiff-backup crashes on this files:
srv18 s # ls -la
...
prwsrws--- 1 10516750 256 0 Jan 1 1970 table_row_props.gif
crw---S--- 1 3414740985 226526504 0, 115 Sep 6 1944
table_split_cells.gif
...
I'm understand that this couldnt be, but there is. =)
--
С уважением, Бойков Александр
системный администратор "ТаймВэб"
http://www.timeweb.ru
address@hidden
ICQ: 494-963-351
+7 812 334-1520
+7 812 334-1530
- [rdiff-backup-users] Problem with incorrect file owners,
Александр Бойков <=