History

devfs-win32: set atime and mtime of drive volume directories

cinap_lenrek committed 9 years ago

Commit bc9f9801 parent c928f5c1 file · +3 −2Browse files

Unified · Split

kern/devfs-win32.c+3−2
@@ -118,6 +118,7 @@ wfdtoqid(wchar_t *path, WIN32_FIND_DATA *wfd) · 117 unmodified lines
118static void118static void
119wfdtodir(wchar_t *path, Dir *d, WIN32_FIND_DATA *wfd)119wfdtodir(wchar_t *path, Dir *d, WIN32_FIND_DATA *wfd)
120{120{
121 extern ulong kerndate;
121 WIN32_FIND_DATA f;122 WIN32_FIND_DATA f;
122 123
123 switch(pathtype(path)){124 switch(pathtype(path)){
@@ -125,8 +126,8 @@ wfdtodir(wchar_t *path, Dir *d, WIN32_FIND_DATA *wfd) · 1 unmodified line
125 case TPATH_ROOT:126 case TPATH_ROOT:
126 wfd = nil;127 wfd = nil;
127 d->mode = 0777 | DMDIR;128 d->mode = 0777 | DMDIR;
128 d->atime = 0;129 d->atime = seconds();
129 d->mtime = 0;130 d->mtime = kerndate;
130 d->length = 0;131 d->length = 0;
131 break;132 break;
132 133

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t