From 3dc8cadf0c5bbf2201b4a7250993b64cad58f9cc Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sun, 3 Oct 1999 15:45:27 +0000 Subject: [PATCH] (kauth): make sure we're using private protection level git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7079 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/kauth.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/appl/ftp/ftp/kauth.c b/appl/ftp/ftp/kauth.c index ce0cc5b8f..65e67d301 100644 --- a/appl/ftp/ftp/kauth.c +++ b/appl/ftp/ftp/kauth.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1995-1999 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -128,8 +128,13 @@ kauth(int argc, char **argv) return; } memset (tktcopy.dat, 0, tktcopy.length); - ret = command("SITE KAUTH %s %s", name, p); - free(p); + { + int save; + save = set_command_prot(prot_private); + ret = command("SITE KAUTH %s %s", name, p); + free(p); + set_command_prot(save); + } if(ret != COMPLETE){ code = -1; return;