| Type | Bug | Status | built | Date | 25-Nov-2011 21:43 |
|---|---|---|---|---|---|
| Version | alpha 111 | Category | Ports | Submitted by | BrianH |
| Platform | All | Severity | minor | Priority | normal |
| 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 to | n/a | Fixed in | r3 master | Last Update | 20-Jan-2013 06:29 |
|---|
| 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 | - |