summaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
authorDenis Vlasenko2009-03-09 22:37:23 +0000
committerDenis Vlasenko2009-03-09 22:37:23 +0000
commit245f91b6494063c5fa1f3f586771e2ac100a69a9 (patch)
tree2e789929f145e08b9a38cd37564b7d5d161cf5d8 /coreutils/ls.c
parent5b28d314e7a731c5cee51e811e892188e800ea99 (diff)
downloadbusybox-245f91b6494063c5fa1f3f586771e2ac100a69a9.zip
busybox-245f91b6494063c5fa1f3f586771e2ac100a69a9.tar.gz
ftpd + ls - timestamp = confused Mozilla. Prevent that.
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index f4f2724..a461b15 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -40,6 +40,21 @@
/* This is a NOEXEC applet. Be very careful! */
+#if ENABLE_FTPD
+/* ftpd uses ls, and without timestamps Mozilla won't understand
+ * ftpd's LIST output.
+ */
+# undef CONFIG_FEATURE_LS_TIMESTAMPS
+# undef ENABLE_FEATURE_LS_TIMESTAMPS
+# undef USE_FEATURE_LS_TIMESTAMPS
+# undef SKIP_FEATURE_LS_TIMESTAMPS
+# define CONFIG_FEATURE_LS_TIMESTAMPS 1
+# define ENABLE_FEATURE_LS_TIMESTAMPS 1
+# define USE_FEATURE_LS_TIMESTAMPS(...) __VA_ARGS__
+# define SKIP_FEATURE_LS_TIMESTAMPS(...)
+#endif
+
+
enum {
TERMINAL_WIDTH = 80, /* use 79 if terminal has linefold bug */