ftpd + ls - timestamp = confused Mozilla. Prevent that.
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 9 Mar 2009 22:37:23 +0000 (22:37 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 9 Mar 2009 22:37:23 +0000 (22:37 -0000)
coreutils/ls.c

index f4f2724c54d23a867d2de746e6ac8489482b4687..a461b154f4234164f5f7733a6ec9aee336f822b5 100644 (file)
 /* 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 */