diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 2004-04-04 18:56:53 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 2004-04-04 18:56:53 +0000 |
commit | d6d62d8d63c1d4550714036cbb0167b4c5070517 (patch) | |
tree | 917ef3ec8c4ee45c2d5889e3787a65be426a7ac4 /usr.bin/su | |
parent | b193355dc4fa733c410cc2165c0bf81deed79a39 (diff) | |
download | src-d6d62d8d63c1d4550714036cbb0167b4c5070517.tar.gz src-d6d62d8d63c1d4550714036cbb0167b4c5070517.zip |
Add FBSDID. Do not dot terminate errx(3) string.
Notes
Notes:
svn path=/head/; revision=127848
Diffstat (limited to 'usr.bin/su')
-rw-r--r-- | usr.bin/su/su.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index e3c193fd63b4..1a49ae378f87 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -44,13 +44,14 @@ static const char copyright[] = The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/time.h> @@ -288,7 +289,7 @@ main(int argc, char *argv[]) /* if asme and non-standard target shell, must be root */ if (asme) { if (ruid != 0 && !chshell(pwd->pw_shell)) - errx(1, "permission denied (shell)."); + errx(1, "permission denied (shell)"); } else if (pwd->pw_shell && *pwd->pw_shell) { shell = pwd->pw_shell; |