+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
* 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
.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
.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.
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>]
} elsif (m/^--list$/) {
&CheckModeConflict;
$mode= 'list';
- } elsif (m/^--import$/) {
- &CheckModeConflict;
- $mode= 'import';
} else {
&badusage("unknown option \`$_'");
}
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);