The following commit has been merged in the master branch:
commit 9561a6c4497cbf69f3d9d3a50284459b3e1027ac
Author: Raphael Hertzog <[EMAIL PROTECTED]>
Date:   Wed Nov 19 18:33:52 2008 +0100

    dpkg-source: fix to support POSIXLY_CORRECT=1
    
    * scripts/Dpkg/Source/Functions.pm (fixperms): Fix chmod call to
    also work when POSIXLY_CORRECT is set.

diff --git a/ChangeLog b/ChangeLog
index 24e76c8..f627e93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-19  Raphael Hertzog  <[EMAIL PROTECTED]>
+
+       * scripts/Dpkg/Source/Functions.pm (fixperms): Fix chmod call to
+       also work when POSIXLY_CORRECT is set.
+
 2008-11-11  Guillem Jover  <[EMAIL PROTECTED]>
 
        * scripts/dpkg-architecture.pl: Use new style functions calls.
diff --git a/debian/changelog b/debian/changelog
index cc7b41c..56e8b7e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -83,6 +83,8 @@ dpkg (1.15.0) UNRELEASED; urgency=low
     Thanks to Javier Serrano Polo <[EMAIL PROTECTED]>.
   * Set Standards-Version to 3.8.0 (no changes needed).
   * Drop some unneeded lintian overrides.
+  * Fix a chmod call in dpkg-source to not fail when POSIXLY_CORRECT is set.
+    Closes: #506028
 
   [ Pierre Habouzit ]
   * Add a --query option to update-alternatives. Closes: #336091, #441904
diff --git a/scripts/Dpkg/Source/Functions.pm b/scripts/Dpkg/Source/Functions.pm
index 7c8ca88..7c4378f 100644
--- a/scripts/Dpkg/Source/Functions.pm
+++ b/scripts/Dpkg/Source/Functions.pm
@@ -46,8 +46,8 @@ sub fixperms {
             $modes_set .= qw(r w X)[$j];
         }
     }
-    system('chmod', '-R', $modes_set, '--', $dir);
-    subprocerr("chmod -R $modes_set $dir") if $?;
+    system('chmod', '-R', '--', $modes_set, $dir);
+    subprocerr("chmod -R -- $modes_set $dir") if $?;
 }
 
 sub is_binary($) {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to