1130803Smarcel/* 2130803Smarcel * Copyright (c) 1995-1999 Kungliga Tekniska H��gskolan 3130803Smarcel * (Royal Institute of Technology, Stockholm, Sweden). 4130803Smarcel * All rights reserved. 5130803Smarcel * 6130803Smarcel * Redistribution and use in source and binary forms, with or without 7130803Smarcel * modification, are permitted provided that the following conditions 8130803Smarcel * are met: 9130803Smarcel * 10130803Smarcel * 1. Redistributions of source code must retain the above copyright 11130803Smarcel * notice, this list of conditions and the following disclaimer. 12130803Smarcel * 13130803Smarcel * 2. Redistributions in binary form must reproduce the above copyright 14130803Smarcel * notice, this list of conditions and the following disclaimer in the 15130803Smarcel * documentation and/or other materials provided with the distribution. 16130803Smarcel * 17130803Smarcel * 3. Neither the name of the Institute nor the names of its contributors 18130803Smarcel * may be used to endorse or promote products derived from this software 19130803Smarcel * without specific prior written permission. 20130803Smarcel * 21130803Smarcel * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22130803Smarcel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23130803Smarcel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24130803Smarcel * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25130803Smarcel * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26130803Smarcel * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27130803Smarcel * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28130803Smarcel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29130803Smarcel * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30130803Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31130803Smarcel * SUCH DAMAGE. 32130803Smarcel */ 33130803Smarcel 34130803Smarcel#include "ftp_locl.h" 35130803SmarcelRCSID("$Id$"); 36130803Smarcel 37130803Smarcel#if defined(KRB5) 38130803Smarcel 39130803Smarcelvoid 40130803Smarcelafslog(int argc, char **argv) 41130803Smarcel{ 42130803Smarcel int ret; 43130803Smarcel if(argc > 2) { 44130803Smarcel printf("usage: %s [cell]\n", argv[0]); 45130803Smarcel code = -1; 46130803Smarcel return; 47130803Smarcel } 48130803Smarcel if(argc == 2) 49130803Smarcel ret = command("SITE AFSLOG %s", argv[1]); 50130803Smarcel else 51130803Smarcel ret = command("SITE AFSLOG"); 52130803Smarcel code = (ret == COMPLETE); 53130803Smarcel} 54130803Smarcel 55130803Smarcel#else 56130803Smarcelint ftp_afslog_placeholder; 57130803Smarcel#endif 58130803Smarcel