From 70b90a6f9d3325e249588b7dd61e0c763eed09f5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 2 May 1995 04:04:32 +0000 Subject: (quote_filename): Never return NULL when quoting filenames as C-strings. --quote-name was quoting only strings containing at least one C-quotable character. Reported by David J. MacKenzie. --- src/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ls.c b/src/ls.c index 4aeeb08f6..4dd6e6438 100644 --- a/src/ls.c +++ b/src/ls.c @@ -2075,7 +2075,7 @@ quote_filename (p, quoted_length) break; } - if (!found_quotable) + if (!found_quotable && !quote_as_string) { *quoted_length = p - p0; return NULL; -- cgit v1.2.3-70-g09d2