diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-03 14:55:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-03 14:55:49 +0000 |
commit | 7c31ea4e2978eee19988efbfddb2a8f3e0c6873d (patch) | |
tree | 6c3e843d872bccb9cd6134664e8081f1912c0480 | |
parent | 5d41d60f1e78aceb92555596c3a58c13c65d4e5b (diff) | |
download | busybox-w32-7c31ea4e2978eee19988efbfddb2a8f3e0c6873d.tar.gz busybox-w32-7c31ea4e2978eee19988efbfddb2a8f3e0c6873d.tar.bz2 busybox-w32-7c31ea4e2978eee19988efbfddb2a8f3e0c6873d.zip |
Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
<dvrabel@arcom.co.uk>. Seems some ftp clients expect the '-g' option
to exist.
-Erik
-rw-r--r-- | Changelog | 2 | ||||
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | ls.c | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,8 @@ | |||
15 | * Added support for being a login shell, so things like | 15 | * Added support for being a login shell, so things like |
16 | '-su' or '-sh' (stuff where argv[0][0]=='-') will now always | 16 | '-su' or '-sh' (stuff where argv[0][0]=='-') will now always |
17 | invoke the shell. Now you can use BusyBox as a login shell. | 17 | invoke the shell. Now you can use BusyBox as a login shell. |
18 | * ls.c now ignores '-g', since some ftp clients like that sort | ||
19 | of thing. Patch thanks to David Vrabel <dvrabel@arcom.co.uk> | ||
18 | 20 | ||
19 | -Erik Andersen | 21 | -Erik Andersen |
20 | 22 | ||
diff --git a/coreutils/ls.c b/coreutils/ls.c index 0b1aa6221..8b9422ec6 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -568,6 +568,8 @@ extern int ls_main(int argc, char **argv) | |||
568 | opts |= DISP_RECURSIVE; | 568 | opts |= DISP_RECURSIVE; |
569 | break; | 569 | break; |
570 | #endif | 570 | #endif |
571 | case 'g': /* ignore -- for ftp servers */ | ||
572 | break; | ||
571 | default: | 573 | default: |
572 | goto print_usage_message; | 574 | goto print_usage_message; |
573 | } | 575 | } |
@@ -568,6 +568,8 @@ extern int ls_main(int argc, char **argv) | |||
568 | opts |= DISP_RECURSIVE; | 568 | opts |= DISP_RECURSIVE; |
569 | break; | 569 | break; |
570 | #endif | 570 | #endif |
571 | case 'g': /* ignore -- for ftp servers */ | ||
572 | break; | ||
571 | default: | 573 | default: |
572 | goto print_usage_message; | 574 | goto print_usage_message; |
573 | } | 575 | } |