X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=tee.c;h=c9b5410d312347d59e200b6497bb5566844d941c;hb=78eab2f6c634aa9e08d923c9aa4d63b73440bd38;hp=a3a1c8132b962f9b5e8e78a0433547875e8c1e6c;hpb=692a4502b0205f083855a102f906e206733b5b93;p=oweals%2Fbusybox.git diff --git a/tee.c b/tee.c index a3a1c8132..c9b5410d3 100644 --- a/tee.c +++ b/tee.c @@ -3,7 +3,7 @@ * Mini tee implementation for busybox * * - * Copyright (C) 1999 by Lineo, inc. + * Copyright (C) 1999,2000 by Lineo, inc. * Written by John Beppu * * This program is free software; you can redistribute it and/or modify @@ -27,12 +27,14 @@ #include static const char tee_usage[] = - "tee [OPTION]... [FILE]...\n\n" - "Copy standard input to each FILE, and also to standard output.\n\n" + "tee [OPTION]... [FILE]...\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nCopy standard input to each FILE, and also to standard output.\n\n" "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite\n" #if 0 "\t-i\tignore interrupt signals\n" #endif +#endif ; @@ -125,8 +127,10 @@ int tee_main(int argc, char **argv) /* clean up */ FL_apply(tee_fclose, 0); - free(FileList); - exit(0); + /* Don't bother to close files Exit does that + * automagically, so we can save a few bytes */ + /* free(FileList); */ + return(0); } -/* $Id: tee.c,v 1.7 2000/03/08 00:14:35 beppu Exp $ */ +/* $Id: tee.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */