[Tickets #10923] Re: horde-set-perms not working

bugs at horde.org bugs at horde.org
Fri Jan 20 07:50:45 UTC 2012


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/10923
------------------------------------------------------------------------------
  Ticket           | 10923
  Aktualisiert Von | piper at hrz.uni-marburg.de
  Zusammenfassung  | horde-set-perms not working
  Warteschlange    | Horde Base
  Version          | 4.0.13
  Typ              | Bug
  Status           | Resolved
  Priorität        | 2. Medium
  Milestone        | 4.0.14
  Patch            | 1
  Zuständige       | Jan Schneider
+Neue Anlage      | horde-set-perms-1.patch
------------------------------------------------------------------------------


piper at hrz.uni-marburg.de (2012-01-20 07:50) hat geschrieben:

>
> There is something wrong with your PHP then.  
> RecursiveIteratorIterator::SELF_FIRST only changes the order of the  
> iterator elements. It doesn't change whether directories are  
> included or not.

PHP-documentation states that the default mode is  
RecursiveIteratorIterator::LEAVES_ONLY, which returns only files  
including 'path/..' and sometimes 'path/.' for my setup. Due to the  
'!$it->isDot()'-restriction, the dot-entries are skipped, so no  
directories are changed. Changing the restriction to 'if  
($val->getFilename() != '..' )', gets most of the directories and  
leaves 'HORDE_BASE/..' unchanged, but  
RecursiveIteratorIterator::SELF_FIRST still is necessary for those  
directories not returned as 'path/.'
I include a patch to your last version with these changes here.



piper at hrz.uni-marburg.de (2012-01-20 07:50) hat hochgeladen:  
horde-set-perms-1.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=horde-set-perms-1.patch&ticket=10923&fn=%2Fhorde-set-perms-1.patch





More information about the bugs mailing list