Remove utxrm(8). This command has been superseded by 'utx rm'.
This commit is contained in:
parent
3b3d05d769
commit
23c80c6928
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257579
@ -38,6 +38,9 @@
|
|||||||
# xargs -n1 | sort | uniq -d;
|
# xargs -n1 | sort | uniq -d;
|
||||||
# done
|
# done
|
||||||
|
|
||||||
|
# 20131103: removal of utxrm(8), use 'utx rm' instead.
|
||||||
|
OLD_FILES+=usr/sbin/utxrm
|
||||||
|
OLD_FILES+=usr/share/man/man8/utxrm.8.gz
|
||||||
# 20131031: pkg_install has been removed
|
# 20131031: pkg_install has been removed
|
||||||
OLD_FILES+=etc/periodic/daily/220.backup-pkgdb
|
OLD_FILES+=etc/periodic/daily/220.backup-pkgdb
|
||||||
OLD_FILES+=etc/periodic/daily/490.status-pkg-changes
|
OLD_FILES+=etc/periodic/daily/490.status-pkg-changes
|
||||||
|
@ -4147,14 +4147,12 @@ OLD_FILES+=usr/bin/who
|
|||||||
OLD_FILES+=usr/sbin/ac
|
OLD_FILES+=usr/sbin/ac
|
||||||
OLD_FILES+=usr/sbin/lastlogin
|
OLD_FILES+=usr/sbin/lastlogin
|
||||||
OLD_FILES+=usr/sbin/utx
|
OLD_FILES+=usr/sbin/utx
|
||||||
OLD_FILES+=usr/sbin/utxrm
|
|
||||||
OLD_FILES+=usr/share/man/man1/last.1.gz
|
OLD_FILES+=usr/share/man/man1/last.1.gz
|
||||||
OLD_FILES+=usr/share/man/man1/users.1.gz
|
OLD_FILES+=usr/share/man/man1/users.1.gz
|
||||||
OLD_FILES+=usr/share/man/man1/who.1.gz
|
OLD_FILES+=usr/share/man/man1/who.1.gz
|
||||||
OLD_FILES+=usr/share/man/man8/ac.8.gz
|
OLD_FILES+=usr/share/man/man8/ac.8.gz
|
||||||
OLD_FILES+=usr/share/man/man8/lastlogin.8.gz
|
OLD_FILES+=usr/share/man/man8/lastlogin.8.gz
|
||||||
OLD_FILES+=usr/share/man/man8/utx.8.gz
|
OLD_FILES+=usr/share/man/man8/utx.8.gz
|
||||||
OLD_FILES+=usr/share/man/man8/utxrm.8.gz
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${MK_WIRELESS} == no
|
.if ${MK_WIRELESS} == no
|
||||||
|
@ -3,7 +3,4 @@
|
|||||||
PROG= utx
|
PROG= utx
|
||||||
MAN= utx.8
|
MAN= utx.8
|
||||||
|
|
||||||
LINKS= ${BINDIR}/utx ${BINDIR}/utxrm
|
|
||||||
MLINKS= utx.8 utxrm.8
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -24,12 +24,11 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd February 11, 2012
|
.Dd November 3, 2013
|
||||||
.Dt UTX 8
|
.Dt UTX 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm utx ,
|
.Nm utx
|
||||||
.Nm utxrm
|
|
||||||
.Nd manage the user accounting database
|
.Nd manage the user accounting database
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
@ -40,9 +39,6 @@
|
|||||||
.Cm rm
|
.Cm rm
|
||||||
.Ar identifier
|
.Ar identifier
|
||||||
.Ar ...
|
.Ar ...
|
||||||
.Nm utxrm
|
|
||||||
.Ar identifier
|
|
||||||
.Ar ...
|
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
@ -82,11 +78,6 @@ accounting database's active session table, including its identifiers:
|
|||||||
Identifiers can either be supplied in hexadecimal form as displayed by
|
Identifiers can either be supplied in hexadecimal form as displayed by
|
||||||
.Xr getent 1 ,
|
.Xr getent 1 ,
|
||||||
or as a string if the identifier allows such a representation.
|
or as a string if the identifier allows such a representation.
|
||||||
.Pp
|
|
||||||
To remain backward compatible, this action can also be invoked directly
|
|
||||||
by using the
|
|
||||||
.Nm utxrm
|
|
||||||
command.
|
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Because this utility requires write-access to the user accounting
|
Because this utility requires write-access to the user accounting
|
||||||
|
@ -95,10 +95,7 @@ int
|
|||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
if (argc >= 2 && strcmp(getprogname(), "utxrm") == 0)
|
if (argc == 2 && strcmp(argv[1], "boot") == 0)
|
||||||
/* For compatibility. */
|
|
||||||
return (rm(&argv[1]));
|
|
||||||
else if (argc == 2 && strcmp(argv[1], "boot") == 0)
|
|
||||||
return (boot(BOOT_TIME));
|
return (boot(BOOT_TIME));
|
||||||
else if (argc == 2 && strcmp(argv[1], "shutdown") == 0)
|
else if (argc == 2 && strcmp(argv[1], "shutdown") == 0)
|
||||||
return (boot(SHUTDOWN_TIME));
|
return (boot(SHUTDOWN_TIME));
|
||||||
@ -108,7 +105,6 @@ main(int argc, char *argv[])
|
|||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"usage: utx boot\n"
|
"usage: utx boot\n"
|
||||||
" utx shutdown\n"
|
" utx shutdown\n"
|
||||||
" utx rm identifier ...\n"
|
" utx rm identifier ...\n");
|
||||||
" utxrm identifier ...\n");
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user