|
From: <di...@us...> - 2010-11-29 04:20:00
|
Revision: 730
http://safekeep.svn.sourceforge.net/safekeep/?rev=730&view=rev
Author: dimi
Date: 2010-11-29 04:19:55 +0000 (Mon, 29 Nov 2010)
Log Message:
-----------
Do not die if we can't set effective UID, just issue a warning
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-11-29 04:16:54 UTC (rev 729)
+++ safekeep/trunk/safekeep 2010-11-29 04:19:55 UTC (rev 730)
@@ -1507,8 +1507,11 @@
if backup_user and backup_user != work_user:
(user, pswd, uid, gid, gecos, home_dir, shell) = pwd.getpwnam(backup_user)
if mode is not 'keys':
- os.setregid(gid, gid)
- os.setreuid(uid, uid)
+ try:
+ os.setregid(gid, gid)
+ os.setreuid(uid, uid)
+ except OSError, ex:
+ warn("Cannot setreuid(): " + str(ex))
os.environ['HOME'] = home_dir
else:
backup_user = work_user
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|