summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/appl/rcp/util.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-05-07 13:39:42 +0000
committerdfr <dfr@FreeBSD.org>2008-05-07 13:39:42 +0000
commit52bf09d8197dd1ec84e1ab72684f2058f0eae9e1 (patch)
tree07a0d6761d1b42410a27e4c7d583b766d6671f80 /crypto/heimdal/appl/rcp/util.c
parent6c68306921f6e85bce52c905cf2606c25acdb436 (diff)
parent51b6601db456e699ea5d4843cbc7239ee92d9c13 (diff)
downloadFreeBSD-src-52bf09d8197dd1ec84e1ab72684f2058f0eae9e1.zip
FreeBSD-src-52bf09d8197dd1ec84e1ab72684f2058f0eae9e1.tar.gz
This commit was generated by cvs2svn to compensate for changes in r178825,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/heimdal/appl/rcp/util.c')
-rw-r--r--crypto/heimdal/appl/rcp/util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/heimdal/appl/rcp/util.c b/crypto/heimdal/appl/rcp/util.c
index 3621d30..fe9e899 100644
--- a/crypto/heimdal/appl/rcp/util.c
+++ b/crypto/heimdal/appl/rcp/util.c
@@ -43,7 +43,7 @@ static const char rcsid[] =
#include "rcp_locl.h"
-RCSID("$Id: util.c,v 1.6 2001/09/04 14:35:58 assar Exp $");
+RCSID("$Id: util.c 17878 2006-08-08 21:43:58Z lha $");
char *
colon(cp)
@@ -81,9 +81,9 @@ okname(cp0)
char *cp0;
{
int c;
- char *cp;
+ unsigned char *cp;
- cp = cp0;
+ cp = (unsigned char *)cp0;
do {
c = *cp;
if (c & 0200)
@@ -112,7 +112,8 @@ susystem(s, userid)
return (127);
case 0:
- (void)setuid(userid);
+ if (setuid(userid) < 0)
+ _exit(127);
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
_exit(127);
}
OpenPOWER on IntegriCloud