<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>horde-set-perms not working</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:19 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10923</link> 
  <atom:link rel="self" type="application/rss+xml" title="horde-set-perms not working" href="https://bugs.horde.org/ticket/10923/rss" /> 
  <description>horde-set-perms not working</description> 
 
   
   
  <item> 
   <title>The script &#039;horde-set-perms&#039;, which should set permissions f</title> 
   <description>The script &#039;horde-set-perms&#039;, which should set permissions for the installed horde-tree, is not working, because it compares group- and owner-names to numerical group- and owner-ids as returned by php, and is not handling directories. Please find attached a patch for these problems.</description> 
   <pubDate>Fri, 13 Jan 2012 08:34:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69811</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

[jan] Fix ho</title> 
   <description>Changes have been made in Git for this ticket:

[jan] Fix horde-set-perms (piper@hrz.uni-marburg.de, Bug #10923).

 3 files changed, 11 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/8c9fe1942e25b0f7af71ac873c119a4ef65718f6</description> 
   <pubDate>Mon, 16 Jan 2012 12:57:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69827</link> 
  </item> 
   
  <item> 
   <title>&gt; The script &#039;horde-set-perms&#039;, which should set permissions</title> 
   <description>&gt; The script &#039;horde-set-perms&#039;, which should set permissions for the 
&gt; installed horde-tree, is not working, because it compares group- and 
&gt; owner-names to numerical group- and owner-ids as returned by php, and 
&gt; is not handling directories. Please find attached a patch for these 
&gt; problems.

I left out the explicit setting of HORDE_BASE, because the iterator already includes it. The RecursiveIteratorIterator::SELF_FIRST flag wasn&#039;t necessary either.</description> 
   <pubDate>Mon, 16 Jan 2012 12:58:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69829</link> 
  </item> 
   
  <item> 
   <title>the single quotes in line 48
$grouppars = posix_getgrnam(&#039;$</title> 
   <description>the single quotes in line 48
$grouppars = posix_getgrnam(&#039;$group&#039;);
have to be left out for being able to resolve the variable.

&gt; I left out the explicit setting of HORDE_BASE, because the iterator 
&gt; already includes it. The RecursiveIteratorIterator::SELF_FIRST flag 
&gt; wasn&#039;t necessary either.

Without the RecursiveIteratorIterator::SELF_FIRST flag only files are changed, all directories are completely ignored in my test-setup. And even with this flag set, the HORDE_BASE directory is not changed, therefore I set it explicitely.
</description> 
   <pubDate>Wed, 18 Jan 2012 07:24:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69847</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Remove quote</title> 
   <description>Changes have been made in Git for this ticket:

Remove quotes (Bug #10923).

 1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/c704e141e6326a7916d0fa528580c82f3d9c3924</description> 
   <pubDate>Wed, 18 Jan 2012 10:23:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69851</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I left out the explicit setting of HORDE_BASE, because th</title> 
   <description>&gt;&gt; I left out the explicit setting of HORDE_BASE, because the iterator
&gt;&gt; already includes it. The RecursiveIteratorIterator::SELF_FIRST flag
&gt;&gt; wasn&#039;t necessary either.
&gt;
&gt; Without the RecursiveIteratorIterator::SELF_FIRST flag only files are 
&gt; changed, all directories are completely ignored in my test-setup. And 
&gt; even with this flag set, the HORDE_BASE directory is not changed, 
&gt; therefore I set it explicitely.

There is something wrong with your PHP then. RecursiveIteratorIterator::SELF_FIRST only changes the order of the iterator elements. It doesn&#039;t change whether directories are included or not.</description> 
   <pubDate>Wed, 18 Jan 2012 10:24:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69852</link> 
  </item> 
   
  <item> 
   <title>&gt;
&gt; There is something wrong with your PHP then. 
&gt; Recurs</title> 
   <description>&gt;
&gt; There is something wrong with your PHP then. 
&gt; RecursiveIteratorIterator::SELF_FIRST only changes the order of the 
&gt; iterator elements. It doesn&#039;t change whether directories are included 
&gt; or not.

PHP-documentation states that the default mode is RecursiveIteratorIterator::LEAVES_ONLY, which returns only files including &#039;path/..&#039; and sometimes &#039;path/.&#039; for my setup. Due to the &#039;!$it-&gt;isDot()&#039;-restriction, the dot-entries are skipped, so no directories are changed. Changing the restriction to &#039;if ($val-&gt;getFilename() != &#039;..&#039; )&#039;, gets most of the directories and leaves &#039;HORDE_BASE/..&#039; unchanged, but RecursiveIteratorIterator::SELF_FIRST still is necessary for those directories not returned as &#039;path/.&#039;
I include a patch to your last version with these changes here.</description> 
   <pubDate>Fri, 20 Jan 2012 07:50:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69884</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (refs/heads/master):

commit 8</title> 
   <description>Changes have been made in Git (refs/heads/master):

commit 8ee55fca30cb7ba88bf6a9dbdb8db20b3334d9dc
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Mon Jan 30 16:04:14 2012 +0100

    Fix completely (Bug #10923).

 horde/bin/horde-set-perms |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/8ee55fca30cb7ba88bf6a9dbdb8db20b3334d9dc</description> 
   <pubDate>Mon, 30 Jan 2012 15:05:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t69998</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (refs/heads/develop):

commit </title> 
   <description>Changes have been made in Git (refs/heads/develop):

commit 8ee55fca30cb7ba88bf6a9dbdb8db20b3334d9dc
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Mon Jan 30 16:04:14 2012 +0100

    Fix completely (Bug #10923).

 horde/bin/horde-set-perms |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/8ee55fca30cb7ba88bf6a9dbdb8db20b3334d9dc</description> 
   <pubDate>Mon, 30 Jan 2012 18:11:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t70016</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (refs/heads/ajax_to_core):

co</title> 
   <description>Changes have been made in Git (refs/heads/ajax_to_core):

commit 8ee55fca30cb7ba88bf6a9dbdb8db20b3334d9dc
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Mon Jan 30 16:04:14 2012 +0100

    Fix completely (Bug #10923).

 horde/bin/horde-set-perms |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/8ee55fca30cb7ba88bf6a9dbdb8db20b3334d9dc</description> 
   <pubDate>Wed, 01 Feb 2012 20:26:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10923#t70096</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
