From 7eed0341040c6a6907cbbc9d490991daa9b0c49e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Apr 2006 11:12:22 +0000 Subject: [PATCH] update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2991 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ppdManager.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_ppdManager.inc b/include/class_ppdManager.inc index 1152fccc1..c533fb800 100644 --- a/include/class_ppdManager.inc +++ b/include/class_ppdManager.inc @@ -136,7 +136,7 @@ class ppdManager { if(!is_readable($ppdFile)){ print_red(sprintf(_("Specified ppd file '%s' can't be opened for reading."),$ppdFile)); - }elseif(!is_writeable($ppdFile.".tmp")){ + }elseif(!is_writeable(preg_replace("#(^.*/).*$#","\\1",$ppdFile.".tmp"))){ print_red(sprintf(_("The required tmp file file '%s' can't be opened for writing."),$ppdFile.".tmp")); }else{ foreach ($properties as $name => $section){ -- 2.30.2