From 928dd73762e69cfeaab4a7ec9dd8f30f86a45ed4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 25 May 2012 18:10:25 +0200 Subject: su: remove program (util-linux is now the best source for it) * README: Omit "su" from list of programs. * src/su.c: Remove file. * src/Makefile.am: Remove su-related rules and variables. * tests/misc/su-fail: Remove test. * tests/Makefile.am (TESTS): Remove misc/su-fail. * tests/misc/invalid-opt: Remove su-related code. * src/.gitignore: Remove su. * man/su.x: Remove file. * man/Makefile.am (su.1): Remove rule. * po/POTFILES.in: Remove su.c from the list. * TODO: Remove ancient entry. * NEWS (Changes in behavior): Mention it. * doc/coreutils.texi: Remove su-related description. * AUTHORS: Remove su. * m4/lib-check.m4 (cu_LIB_CHECK): Remove file/macro. * configure.ac: Remove su-related code and sole use of cu_LIB_CHECK. * scripts/git-hooks/commit-msg: Remove su from this list, too. --- tests/misc/help-version | 1 - tests/misc/invalid-opt | 1 - tests/misc/su-fail | 30 ------------------------------ 3 files changed, 32 deletions(-) delete mode 100755 tests/misc/su-fail (limited to 'tests/misc') diff --git a/tests/misc/help-version b/tests/misc/help-version index 7416062fa..e19f5b1c0 100755 --- a/tests/misc/help-version +++ b/tests/misc/help-version @@ -208,7 +208,6 @@ nohup_setup () { args=--version; } printf_setup () { args=foo; } seq_setup () { args=10; } sleep_setup () { args=0; } -su_setup () { args=--version; } stdbuf_setup () { args="-oL true"; } timeout_setup () { args=--version; } diff --git a/tests/misc/invalid-opt b/tests/misc/invalid-opt index 8eae3c275..8f7024c6f 100755 --- a/tests/misc/invalid-opt +++ b/tests/misc/invalid-opt @@ -36,7 +36,6 @@ my %exit_status = nohup => 125, sort => 2, stdbuf => 125, - su => 125, test => 0, timeout => 125, true => 0, diff --git a/tests/misc/su-fail b/tests/misc/su-fail deleted file mode 100755 index c2e0475d2..000000000 --- a/tests/misc/su-fail +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# Test su failure cases - -# Copyright (C) 2009-2012 Free Software Foundation, Inc. - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -. "${srcdir=.}/init.sh"; path_prepend_ ../src -print_ver_ su - -require_built_ su - -# Very little that we can test without a root password -su --- / true # unknown option -test $? = 125 || fail=1 -su no_such_user -test $? = 125 || fail=1 - -Exit $fail -- cgit v1.2.3-70-g09d2