/*********************************************************************\ * Copyright (c) 2003 by Radim Kolar (pgr@prg.ox.ac.uk) * * * * You may copy or modify this file in any manner you wish, provided * * that this notice is always included, and that you hold the author * * harmless for any loss or damage resulting from the installation or * * use of this software. * \*********************************************************************/ /* ---INFOBEGIN--- * DO NOT DELETE THIS COMMENT BLOCK!!! COMMAND dir remote "long list of the remote directory" * ---INFOEND--- */ #include "client.h" #include "table.h" #include /* ARGSUSED */ int rdir_main(int argc, char *const*argv, char **envp) { int i; /* this is just a small wrapper for rls_main */ char const * * newargv; newargv=malloc( (argc+2)*(sizeof(char *))); newargv[0]="dir"; newargv[1]="-l"; for(i=1;i<=argc;i++) { newargv[i+1]=argv[i]; }; i=rls_main(argc+1,newargv,envp); free(newargv); return i; }