File remove_ks_directory_check.diff of Package cobbler.3314
Index: cobbler-2.6.6/cobbler/remote.py
===================================================================
--- cobbler-2.6.6.orig/cobbler/remote.py
+++ cobbler-2.6.6/cobbler/remote.py
@@ -823,9 +823,6 @@ class CobblerXMLRPCInterface:
if path.find("..") != -1 or not path.startswith("/"):
utils.die(self.logger, "Invalid kickstart template file location %s" % path)
- if not path.startswith("/var/lib/cobbler/kickstarts"):
- utils.die(self.logger, "Invalid kickstart template file location %s, it is not inside /var/lib/cobbler/kickstarts/" % path)
-
def modify_item(self,what,object_id,attribute,arg,token):
"""
Adjusts the value of a given field, specified by 'what' on a given object id.