Message-Id: <199704121442.KAA10395@delorie.com> From: Oberhumer Markus Subject: ls patch To: djgpp-workers AT delorie DOT com (djgpp-workers), eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Sat, 12 Apr 1997 16:39:32 +0200 (METDST) Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 693 This patch fixes a problem in ls when displaying the files in a directory that is exactly 1 character long. *** gnu\filutil3.13\src\ls.org Sat Apr 5 20:55:38 1997 --- gnu\filutil3.13\src\ls.c Sat Apr 12 14:56:26 1997 *************** *** 2794,2799 **** #ifdef MSDOS /* "d:" does NOT mean "d:/" */ ! if (dirnamep > dirname + 1 ! && (dirname[1] != ':' || dirname[2] != '\0')) #endif /* Add '/' if `dirname' doesn't already end with it. */ --- 2794,2798 ---- #ifdef MSDOS /* "d:" does NOT mean "d:/" */ ! if (dirname[0] == '\0' || dirname[1] != ':' || dirname[2] != '\0') #endif /* Add '/' if `dirname' doesn't already end with it. */