diff options
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 0fe0345b3..0834cdc63 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -1093,7 +1093,6 @@ int ls_main(int argc UNUSED_PARAM, char **argv) | |||
1093 | #endif | 1093 | #endif |
1094 | 1094 | ||
1095 | /* process options */ | 1095 | /* process options */ |
1096 | IF_LONG_OPTS(applet_long_options = ls_longopts;) | ||
1097 | opt_complementary = | 1096 | opt_complementary = |
1098 | /* -n and -g imply -l */ | 1097 | /* -n and -g imply -l */ |
1099 | "nl:gl" | 1098 | "nl:gl" |
@@ -1111,7 +1110,7 @@ int ls_main(int argc UNUSED_PARAM, char **argv) | |||
1111 | IF_FEATURE_LS_TIMESTAMPS(":c-u:u-c") /* mtime/atime */ | 1110 | IF_FEATURE_LS_TIMESTAMPS(":c-u:u-c") /* mtime/atime */ |
1112 | /* -w NUM: */ | 1111 | /* -w NUM: */ |
1113 | IF_FEATURE_LS_WIDTH(":w+"); | 1112 | IF_FEATURE_LS_WIDTH(":w+"); |
1114 | opt = getopt32(argv, ls_options | 1113 | opt = getopt32long(argv, ls_options, ls_longopts |
1115 | IF_FEATURE_LS_WIDTH(, /*-T*/ NULL, /*-w*/ &G_terminal_width) | 1114 | IF_FEATURE_LS_WIDTH(, /*-T*/ NULL, /*-w*/ &G_terminal_width) |
1116 | IF_FEATURE_LS_COLOR(, &color_opt) | 1115 | IF_FEATURE_LS_COLOR(, &color_opt) |
1117 | ); | 1116 | ); |