aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-05-28 06:47:32 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-05-28 06:47:32 +0000
commita1bdb05cce341a5f2e3a1a2dbbf926320684242e (patch)
tree7f5d829c94d8bfcbd9f37b9f4ae371a937b04492 /usr.bin/su
parentc51edfb77d013b2e259e713ad9e1d89ed4c2d6bf (diff)
downloadsrc-a1bdb05cce341a5f2e3a1a2dbbf926320684242e.tar.gz
src-a1bdb05cce341a5f2e3a1a2dbbf926320684242e.zip
Notes
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index 34f8ecf23445..ec11570e7009 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -1,6 +1,13 @@
/*
* Copyright (c) 1988, 1993, 1994
* The Regents of the University of California. All rights reserved.
+ * Copyright (c) 2002 Networks Associates Technologies, Inc.
+ * All rights reserved.
+ *
+ * Portions of this software were developed for the FreeBSD Project by
+ * ThinkSec AS and NAI Labs, the Security Research Division of Network
+ * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
+ * ("CBOSS"), as part of the DARPA CHATS research program.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -117,7 +124,7 @@ main(int argc, char *argv[])
union {
const char **a;
char * const *b;
- } np;
+ } np;
uid_t ruid;
gid_t gid;
int asme, ch, asthem, fastlogin, prio, i, setwhat, retcode,
@@ -317,7 +324,7 @@ main(int argc, char *argv[])
child_pgrp = tcgetpgrp(1);
kill(getpid(), SIGSTOP);
tcsetpgrp(1, child_pgrp);
- kill(child_pid, SIGCONT);
+ kill(child_pid, SIGCONT);
statusp = 1;
continue;
}