Prechádzať zdrojové kódy

Remove the last calls to chown(getfowner(), ...)

* scripts/dpkg-distaddfile.pl, scripts/dpkg-gencontrol.pl: Delete
the chown(getfowner(), ...) on new files. It doesn't seem to do anything
useful anymore as it got dropped from several other scripts over the years
without problems. This enables the removal of getfowner() from
controllib.pl.
Raphael Hertzog 18 rokov pred
rodič
commit
65dcc473ae
3 zmenil súbory, kde vykonal 5 pridanie a 7 odobranie
  1. 5 0
      ChangeLog
  2. 0 5
      scripts/dpkg-distaddfile.pl
  3. 0 2
      scripts/dpkg-gencontrol.pl

+ 5 - 0
ChangeLog

@@ -47,6 +47,11 @@
 	* scripts/dpkg-genchanges.pl, scripts/dpkg-gencontrol.pl,
 	* scripts/dpkg-genchanges.pl, scripts/dpkg-gencontrol.pl,
 	scripts/dpkg-source.pl: Use the new set_source_package.
 	scripts/dpkg-source.pl: Use the new set_source_package.
 
 
+	* scripts/dpkg-distaddfile.pl, scripts/dpkg-gencontrol.pl: Delete
+	the chown(getfowner(), ...) on new files. It doesn't seem to do
+	anything useful anymore as it got dropped from several other
+	scripts over the years without problems.
+
 2007-12-28  Raphael Hertzog  <hertzog@debian.org>
 2007-12-28  Raphael Hertzog  <hertzog@debian.org>
 
 
 	* scripts/Dpkg/ErrorHandling.pm (syntaxerr): New function to
 	* scripts/Dpkg/ErrorHandling.pm (syntaxerr): New function to

+ 0 - 5
scripts/dpkg-distaddfile.pl

@@ -9,9 +9,6 @@ use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling qw(error syserr usageerr);
 use Dpkg::ErrorHandling qw(error syserr usageerr);
 
 
-push(@INC,$dpkglibdir);
-require 'controllib.pl';
-
 textdomain("dpkg-dev");
 textdomain("dpkg-dev");
 
 
 my $fileslistfile = 'debian/files';
 my $fileslistfile = 'debian/files';
@@ -63,8 +60,6 @@ my ($file, $section, $priority) = @ARGV;
 
 
 $fileslistfile="./$fileslistfile" if $fileslistfile =~ m/^\s/;
 $fileslistfile="./$fileslistfile" if $fileslistfile =~ m/^\s/;
 open(Y,"> $fileslistfile.new") || &syserr(_g("open new files list file"));
 open(Y,"> $fileslistfile.new") || &syserr(_g("open new files list file"));
-chown(getfowner(), "$fileslistfile.new") 
-		|| &syserr(_g("chown new files list file"));
 if (open(X,"< $fileslistfile")) {
 if (open(X,"< $fileslistfile")) {
     while (<X>) {
     while (<X>) {
         s/\n$//;
         s/\n$//;

+ 0 - 2
scripts/dpkg-gencontrol.pl

@@ -323,8 +323,6 @@ for my $f (keys %remove) {
 $fileslistfile="./$fileslistfile" if $fileslistfile =~ m/^\s/;
 $fileslistfile="./$fileslistfile" if $fileslistfile =~ m/^\s/;
 open(Y,"> $fileslistfile.new") || &syserr(_g("open new files list file"));
 open(Y,"> $fileslistfile.new") || &syserr(_g("open new files list file"));
 binmode(Y);
 binmode(Y);
-chown(getfowner(), "$fileslistfile.new") 
-		|| &syserr(_g("chown new files list file"));
 if (open(X,"< $fileslistfile")) {
 if (open(X,"< $fileslistfile")) {
     binmode(X);
     binmode(X);
     while (<X>) {
     while (<X>) {