-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

https://fedorahosted.org/freeipa/ticket/359

Sending this separately from the other automount changes since those are
more intrusive and may be under review for a while.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0HR8sACgkQHsardTLnvCUbOwCgzgiTsGH9dEcaUqwIxnyFqPPO
6WMAnjuetAFyQ00ynjsHw1gxd7llsM6U
=5Feo
-----END PGP SIGNATURE-----
From d704cbb5ecadd3302375fa8ca2e7e0aa01962ca2 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Wed, 8 Dec 2010 13:58:16 -0500
Subject: [PATCH] Check the number of fields when importing automount maps

https://fedorahosted.org/freeipa/ticket/359
---
 ipalib/plugins/automount.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py
index 5689524..7cc7a14 100644
--- a/ipalib/plugins/automount.py
+++ b/ipalib/plugins/automount.py
@@ -351,6 +351,9 @@ class automountlocation_import(LDAPQuery):
             if len(m) == 0:
                 continue
             am = m.split(None)
+            if len(am) < 2:
+                continue
+
             if am[1].startswith('/'):
                 mapfile = am[1].replace('"','')
                 am[1] = os.path.basename(am[1])
-- 
1.7.3.2

Attachment: freeipa-jhrozek-022-Check-the-number-of-fields-when-importing-automount-.patch.sig
Description: PGP signature

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to