summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIker Pedrosa <ipedrosa@redhat.com>2023-08-31 16:30:02 +0200
committerSerge Hallyn <serge@hallyn.com>2023-10-04 13:31:38 -0500
commitfbcd8b536aadf022efe0ddf8be92a631889d6bf8 (patch)
tree8db857207721e0132dced279cd74e115e8a42f6f
parent13a77133841982e3ce604e0b78a334f22b71df7d (diff)
contrib: remove atudel
AFAIK, it isn't included in any distribution and it isn't used internally in the project, so let's remove it. Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
-rw-r--r--contrib/Makefile.am2
-rw-r--r--contrib/README3
-rwxr-xr-xcontrib/atudel58
3 files changed, 1 insertions, 62 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index bb6ea82d..554ca19b 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -2,5 +2,5 @@
# and also cooperate to make a distribution for `make dist'
EXTRA_DIST = README adduser.c adduser.sh adduser2.sh \
- atudel groupmems.shar shadow-anonftp.patch \
+ groupmems.shar shadow-anonftp.patch \
udbachk.tgz
diff --git a/contrib/README b/contrib/README
index c4d1bc03..6002923a 100644
--- a/contrib/README
+++ b/contrib/README
@@ -2,9 +2,6 @@ People keep sending various adduser programs and scripts... They are
all in this directory. I haven't tested them, use at your own risk.
Anyway, the best one I've seen so far is adduser-3.x from Debian.
-atudel is a perl script to remove at jobs owned by the specified user
-(atrm in at-2.9 for Linux can't do that).
-
udbachk.tgz is a passwd/group/shadow file integrity checker.
--marekm
diff --git a/contrib/atudel b/contrib/atudel
deleted file mode 100755
index f5718f24..00000000
--- a/contrib/atudel
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/perl
-#
-# SPDX-FileCopyrightText: 1996 Brian R. Gaeke
-# SPDX-License-Identifier: BSD-4-Clause
-#
-# Additionally:
-#
-# This software is provided without support and without any obligation
-# on the part of Brian R. Gaeke to assist in its use, correction,
-# modification or enhancement.
-#
-#######################################################################
-#
-# this is atudel, version 2, by Brian R. Gaeke <brg@dgate.org>
-#
-
-require "getopts.pl";
-&Getopts('v');
-$username = shift(@ARGV);
-&usage unless $username;
-
-sub usage
-{
- print STDERR "atudel - remove all at jobs owned by a user\n";
- print STDERR "usage: $0 [-v] username\n";
- exit(1);
-}
-
-# odd. unless getpwnam($uname) doesn't seem to work for $uname eq "root" on
-# my linux system. but this does.
-die "user $username does not exist; stopping"
- unless defined(getpwnam($username));
-
-print "searching for at jobs owned by user $username ..." if $opt_v;
-
-chdir "/var/spool/atjobs" ||
- die "can't chdir to /var/spool/atjobs: $!\nstopping";
-opendir(DIR,".") || die "can't opendir(/var/spool/atjobs): $!\nstopping";
-@files = grep(!/^\./,grep(-f,readdir(DIR)));
-closedir DIR;
-
-foreach $x (@files)
-{
- $owner = (getpwuid((stat($x))[4]))[0];
- push(@nuke_bait,$x) if $owner eq $username;
-}
-
-if (@nuke_bait)
-{
- print "removed jobIDs: @{nuke_bait}.\n" if $opt_v;
- unlink @nuke_bait;
-}
-elsif ($opt_v)
-{
- print "\n";
-}
-
-exit 0;