summaryrefslogtreecommitdiffstats
path: root/usr.bin/su
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2004-04-04 18:56:53 +0000
committercharnier <charnier@FreeBSD.org>2004-04-04 18:56:53 +0000
commit055112142a5c208865bf61aedc4f9701c31aa900 (patch)
tree917ef3ec8c4ee45c2d5889e3787a65be426a7ac4 /usr.bin/su
parent1ac8ee31921a86b4041517f6afb873bcfaa5644f (diff)
downloadFreeBSD-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.c11
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;
OpenPOWER on IntegriCloud