[sysadmin-bin] create-auth: be paranoid about the location of the home directory
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] create-auth: be paranoid about the location of the home directory
- Date: Sat, 2 Apr 2011 11:41:46 +0000 (UTC)
commit f6e81a54dd3ddd5d4add6548c2eb9a433ab900eb
Author: Olav Vitters <olav vitters nl>
Date: Sat Apr 2 13:41:41 2011 +0200
create-auth: be paranoid about the location of the home directory
create-auth | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/create-auth b/create-auth
index af4aa8b..9ef1470 100755
--- a/create-auth
+++ b/create-auth
@@ -89,12 +89,13 @@ def get_homedirs(limit_uids=None):
if searchattr not in attr:
continue
+ uid = attr['uid'][0]
attrval = attr[searchattr][0]
# be paranoid about the homedirectory location
if attrval != '/home/users/%s' % uid:
continue
- uids[attr['uid'][0]] = attrval
+ uids[uid] = attrval
return uids
def get_uids_from_wheel():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]