REBOL3 tracker
  0.9.12 beta
Ticket #0001899 User: anonymous

Project:

Previous Next
rss
TypeBug Statusbuilt Date25-Nov-2011 21:43
Versionalpha 111 CategoryPorts Submitted byBrianH
PlatformAll Severityminor Prioritynormal

Summary Files beginning with .. are skipped
Description In the code in dev-file.c for Windows and Posix that skips past the . and .. files in Read_Directory, it doesn't check whether the .. filename ends there. This means that all files with names that start with .. are hidden too. Only the directories named . and .. should be hidden.
Example code
In src/os/posix/dev-file.c, change line 185 from this:
	} while (cp[0] == '.' && (cp[1] == 0 || cp[1] == '.'));
to this:
	} while (cp[0] == '.' && (cp[1] == 0 || (cp[1] == '.' && cp[2] == 0)));

In src/os/win32/dev-file.c, change line 143 from this:
	while (cp == 0 || (cp[0] == '.' && (cp[1] == 0 || cp[1] == '.'))) {
to this:
	while (cp == 0 || (cp[0] == '.' && (cp[1] == 0 || (cp[1] == '.' && cp[2] == 0)))) {


Assigned ton/a Fixed inr3 master Last Update20-Jan-2013 06:29


Comments

Date User Field Action Change
20-Jan-2013 06:29 BrianH Fixedin Modified => r3 master
20-Jan-2013 06:29 BrianH Status Modified pending => built
18-Dec-2012 22:05 BrianH Status Modified reviewed => pending
14-Dec-2012 01:31 BrianH Status Modified submitted => reviewed
25-Nov-2011 22:06 BrianH Description Modified -
25-Nov-2011 22:06 BrianH Code Modified -
25-Nov-2011 21:43 BrianH Ticket Added -