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
118118 static void
119119 wfdtodir(wchar_t *path, Dir *d, WIN32_FIND_DATA *wfd)
120120 {
121+ extern ulong kerndate;
121122 WIN32_FIND_DATA f;
122123
123124 switch(pathtype(path)){
@@ -125,8 +126,8 @@ wfdtodir(wchar_t *path, Dir *d, WIN32_FIND_DATA *wfd) · 1 unmodified line
125126 case TPATH_ROOT:
126127 wfd = nil;
127128 d->mode = 0777 | DMDIR;
128− d->atime = 0;
129− d->mtime = 0;
129+ d->atime = seconds();
130+ d->mtime = kerndate;
130131 d->length = 0;
131132 break;
132133

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