Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
authorEric Andersen <andersen@codepoet.org>
Mon, 3 Jul 2000 14:55:49 +0000 (14:55 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 3 Jul 2000 14:55:49 +0000 (14:55 -0000)
<dvrabel@arcom.co.uk>.  Seems some ftp clients expect the '-g' option
to exist.
 -Erik

Changelog
coreutils/ls.c
ls.c

index 11464b6..e3467f3 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -15,6 +15,8 @@
        * Added support for being a login shell, so things like
            '-su' or '-sh' (stuff where argv[0][0]=='-') will now always 
            invoke the shell.  Now you can use BusyBox as a login shell.
+       * ls.c now ignores '-g', since some ftp clients like that sort 
+           of thing.  Patch thanks to David Vrabel <dvrabel@arcom.co.uk>
 
         -Erik Andersen
 
index 0b1aa62..8b9422e 100644 (file)
@@ -568,6 +568,8 @@ extern int ls_main(int argc, char **argv)
                                opts |= DISP_RECURSIVE;
                                break;
 #endif
+                       case 'g': /* ignore -- for ftp servers */
+                               break;
                        default:
                                goto print_usage_message;
                        }
diff --git a/ls.c b/ls.c
index 0b1aa62..8b9422e 100644 (file)
--- a/ls.c
+++ b/ls.c
@@ -568,6 +568,8 @@ extern int ls_main(int argc, char **argv)
                                opts |= DISP_RECURSIVE;
                                break;
 #endif
+                       case 'g': /* ignore -- for ftp servers */
+                               break;
                        default:
                                goto print_usage_message;
                        }