diff options
author | charnier <charnier@FreeBSD.org> | 2004-04-04 18:56:53 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2004-04-04 18:56:53 +0000 |
commit | 055112142a5c208865bf61aedc4f9701c31aa900 (patch) | |
tree | 917ef3ec8c4ee45c2d5889e3787a65be426a7ac4 /usr.bin/su | |
parent | 1ac8ee31921a86b4041517f6afb873bcfaa5644f (diff) | |
download | FreeBSD-src-055112142a5c208865bf61aedc4f9701c31aa900.zip FreeBSD-src-055112142a5c208865bf61aedc4f9701c31aa900.tar.gz |
Add FBSDID. Do not dot terminate errx(3) string.
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 e3c193f..1a49ae3 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; |