Wichert Akkerman 25 rokov pred
rodič
commit
2d3096a092
4 zmenil súbory, kde vykonal 6 pridanie a 45 odobranie
  1. 5 0
      ChangeLog
  2. 1 0
      debian/changelog
  3. 0 9
      scripts/dpkg-statoverride.8
  4. 0 36
      scripts/dpkg-statoverride.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+Mon Jan  8 15:46:13 PST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-statoverride.{pl,8}: remove --import option now that
+    suidmanager can convert everything
+
 Mon Jan  8 15:12:21 PST 2001 Wichert Akkerman <wakkerma@debian.org>
 
   * scripts/dpkg-source.pl: add vim swapfiles to the default ignore regexp

+ 1 - 0
debian/changelog

@@ -7,6 +7,7 @@ dpkg (1.9.0) unstable; urgency=low
   * Update French translation, Closes: Bug#65284
   * Add French manpages, courtesy of Philippe Batailler
   * Ingore vim swapfiles in dpkg-soruce, Closes: Bug#81630
+  * remove --import option from dpkg-statoverride, Closes: Bug#81358
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 

+ 0 - 9
scripts/dpkg-statoverride.8

@@ -6,8 +6,6 @@ dpkg-statoverride -- override ownership and mode of files
 .br
 \fBdpkg-statoverride\fR [options] --remove \fI<file>\fR
 .br
-\fBdpkg-statoverride\fR [options] --import \fI<package>\fR \fI<file>\fR
-.br
 \fBdpkg-statoverride\fR [options] --list \fI[<glob-pattern>]\fR
 .SH DESCRIPTION
 `\fBstat overrides\fR' are a way to tell dpkg to use a different owner
@@ -32,13 +30,6 @@ groups can be specified by their name (for example \fBroot\fR or
 .I --remove <file>
 Remove an override for \fB<file>\fR.
 .TP
-.TP
-.I --import <package> <file>
-Import the override for file \fB<file>\fR as provided by package
-\fB<package>\fR from the suidmanager configuration. If the user
-has not made an override nothing is done and the default permissions
-are used. If an override is present it is removed from
-\fI/etc/suid.conf\fR and added to the statoverride database.
 .I --list [<glob-pattern>]
 List all overrides. If a glob pattern is specified restrict the output
 to overrides which match the glob.

+ 0 - 36
scripts/dpkg-statoverride.pl

@@ -22,7 +22,6 @@ for copying conditions.  There is NO warranty.
 Usage:
 
   dpkg-statoverride [options] --add <owner> <group> <mode> <file>
-  dpkg-statoverride [options] --import <package> <file>
   dpkg-statoverride [options] --remove <file>
   dpkg-statoverride [options] --list [<glob-pattern>]
 
@@ -65,9 +64,6 @@ while (@ARGV) {
 	} elsif (m/^--list$/) {
 		&CheckModeConflict;
 		$mode= 'list';
-	} elsif (m/^--import$/) {
-		&CheckModeConflict;
-		$mode= 'import';
 	} else {
 		&badusage("unknown option \`$_'");
 	}
@@ -136,38 +132,6 @@ if ($mode eq "add") {
 	delete $mode{$file};
 	$dowrite=1;
 	print STDERR "warning: --update is useless for --remove\n" if ($doupdate);
-} elsif ($mode eq "import") {
-	@ARGV==2 || &badusage("--import needs two arguments");
-	$pkg=$ARGV[0];
-	$file=$ARGV[1];
-	if (defined $owner{$file}) {
-		print STDERR "An override for \"$file\" already exists, ";
-		if ($doforce) {
-			print STDERR "but --force specified so lets ignore it.\n";
-		} else {
-			print STDERR "aborting\n";
-			exit(3);
-		}
-	}
-	open(SUIDCONF,"/etc/suid.conf") || &quit("error opening /etc/suid.conf");
-	while (<SUIDCONF>) {
-		next if (m/^\w*#/);
-		chomp;
-		($sm_pkg,$sm_file,$sm_user,$sm_group)=split;
-		next if ($sm_file ne $file);
-		next if ($sm_pkg eq $pkg);
-		$sm_user="#$sm_user" if ($sm_user =~ m/^\d*$/);
-		$sm_group="#$sm_group" if ($sm_group =~ m/^\d*$/);
-		$owner{$fm_file}=$sm_user;
-		$group{$fm_file}=$sm_group;
-		if ( -x "/usr/sbin/suidunregister") {
-			@args = ("suidunregister", "$file");
-			system(@args) == 0 || &quit("suidunregister failed");
-		}
-		$dowrite=1;
-		last;
-	}
-	close(SUIDCONF);
 } elsif ($mode eq "list") {
 	my (@list,@ilist,$pattern,$file);