From: Barry Jaspan Date: Mon, 12 Aug 1996 15:50:19 +0000 (+0000) Subject: * ovsec_kadmd.c (main): strip path components of whoami X-Git-Tag: krb5-1.0-beta7~155 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebeb9dfe18f5c5cb2eb24b94662790de3e1a20a7;p=krb5.git * ovsec_kadmd.c (main): strip path components of whoami git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8927 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/server/ChangeLog b/src/kadmin/server/ChangeLog index d8cb8ba3b..d8340f811 100644 --- a/src/kadmin/server/ChangeLog +++ b/src/kadmin/server/ChangeLog @@ -1,3 +1,7 @@ +Mon Aug 12 11:48:19 1996 Barry Jaspan + + * ovsec_kadmd.c (main): strip path components of whoami + Thu Aug 1 15:57:08 1996 Barry Jaspan * ovsec_kadmd.c (main): remove useless hex value from error message diff --git a/src/kadmin/server/ovsec_kadmd.c b/src/kadmin/server/ovsec_kadmd.c index 6fe89d853..fe8f80851 100644 --- a/src/kadmin/server/ovsec_kadmd.c +++ b/src/kadmin/server/ovsec_kadmd.c @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) #ifdef PURIFY purify_start_batch(); #endif /* PURIFY */ - whoami = argv[0]; + whoami = (strrchr(argv[0], '/') ? strrchr(argv[0], '/')+1 : argv[0]); nofork = 0;