Browse Source

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.
Raphael Hertzog 17 years ago
parent
commit
9561a6c449
3 changed files with 9 additions and 2 deletions
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 2 2
      scripts/Dpkg/Source/Functions.pm

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-11-19  Raphael Hertzog  <hertzog@debian.org>
+
+	* scripts/Dpkg/Source/Functions.pm (fixperms): Fix chmod call to
+	also work when POSIXLY_CORRECT is set.
+
 2008-11-11  Guillem Jover  <guillem@debian.org>
 
 	* scripts/dpkg-architecture.pl: Use new style functions calls.

+ 2 - 0
debian/changelog

@@ -83,6 +83,8 @@ dpkg (1.15.0) UNRELEASED; urgency=low
     Thanks to Javier Serrano Polo <jasp00@terra.es>.
   * 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

+ 2 - 2
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($) {