* ovsec_kadmd.c (main): strip path components of whoami
authorBarry Jaspan <bjaspan@mit.edu>
Mon, 12 Aug 1996 15:50:19 +0000 (15:50 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Mon, 12 Aug 1996 15:50:19 +0000 (15:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8927 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/server/ChangeLog
src/kadmin/server/ovsec_kadmd.c

index d8cb8ba3bb8188d2fc08e72f484e3941c8048b32..d8340f811679ec6f0ed65c38419e38f71a4162bb 100644 (file)
@@ -1,3 +1,7 @@
+Mon Aug 12 11:48:19 1996  Barry Jaspan  <bjaspan@mit.edu>
+
+       * ovsec_kadmd.c (main): strip path components of whoami
+
 Thu Aug  1 15:57:08 1996  Barry Jaspan  <bjaspan@DUN-DUN-NOODLES>
 
        * ovsec_kadmd.c (main): remove useless hex value from error message
index 6fe89d853cd2cf31841e7c2065d327eb9622f532..fe8f808510fff05c643e477010f756c0402c9c88 100644 (file)
@@ -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;