* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard
[oweals/busybox.git] / coreutils / ln.c
index e35bf7a033769ffc4ba2ca57943e89cdda9cf611..1eb853d2fd23bbe893e59c55de4250c0c698eedf 100644 (file)
@@ -2,8 +2,8 @@
 /*
  * Mini ln implementation for busybox
  *
- * Copyright (C) 1999,2000,2001 by Lineo, inc.
- * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
+ * Copyright (C) 1999,2000 by Lineo, inc. and Erik Andersen
+ * Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  */
 
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_not_a_directory
-#include "messages.c"
-
 #include <stdio.h>
 #include <dirent.h>
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <unistd.h>
+#include "busybox.h"
+
 
 static const int LN_SYMLINK = 1;
 static const int LN_FORCE = 2;
@@ -122,7 +119,7 @@ extern int ln_main(int argc, char **argv)
                        status = EXIT_FAILURE;
                optind++;
        }
-       exit(status);
+       return status;
 }
 
 /*