[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-cvs
Subject:    [PEAR-CVS] cvs: pear /File_Archive/Archive/Writer Files.php
From:       "Charles Brunet" <cbrunet () php ! net>
Date:       2008-05-28 16:00:46
Message-ID: cvscbrunet1211990446 () cvsserver
[Download RAW message or body]

cbrunet		Wed May 28 16:00:46 2008 UTC

  Modified files:              
    /pear/File_Archive/Archive/Writer	Files.php 
  Log:
  Fixe for bug 13516
  
http://cvs.php.net/viewvc.cgi/pear/File_Archive/Archive/Writer/Files.php?r1=1.23&r2=1.24&diff_format=u
Index: pear/File_Archive/Archive/Writer/Files.php
diff -u pear/File_Archive/Archive/Writer/Files.php:1.23 pear/File_Archive/Archive/Writer/Files.php:1.24
--- pear/File_Archive/Archive/Writer/Files.php:1.23	Mon Aug 29 15:14:09 2005
+++ pear/File_Archive/Archive/Writer/Files.php	Wed May 28 16:00:46 2008
@@ -25,7 +25,7 @@
  * @author     Vincent Lascaux <vincentlascaux@php.net>
  * @copyright  1997-2005 The PHP Group
  * @license    http://www.gnu.org/copyleft/lesser.html  LGPL
- * @version    CVS: $Id: Files.php,v 1.23 2005/08/29 15:14:09 vincentlascaux Exp $
+ * @version    CVS: $Id: Files.php,v 1.24 2008/05/28 16:00:46 cbrunet Exp $
  * @link       http://pear.php.net/package/File_Archive
  */
 
@@ -245,13 +245,15 @@
                 chmod($this->filename, $this->stat[2]);
             }
             if (isset($this->stat[5])) {
-                chgrp($this->filename, $this->stat[5]);
+                // I will try, but if I dont have permissions, it will fail
+                @chgrp($this->filename, $this->stat[5]);
             }
             if (isset($this->stat[4])) {
-                chown($this->filename, $this->stat[4]);
+                // I will try, but if I dont have permissions, it will fail
+                @chown($this->filename, $this->stat[4]);
             }
         }
     }
 }
 
-?>
\ No newline at end of file
+?>



-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic