Creation time/date set on create instead of write time/date (set on close)

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1043 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Luchezar Georgiev 2004-09-14 15:02:17 +00:00
parent 66e2a7d174
commit 91189d3608
1 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ struct dpb FAR *get_dpb(COUNT dsk)
return cdsp->cdsDpb;
}
/* initialize directory entry (creation/access stamps 0 as per MS-DOS 7.10) */
/* initialize directory entry */
STATIC void init_direntry(struct dirent *dentry, unsigned attrib,
CLUSTER cluster, char *name)
{
@ -111,8 +111,8 @@ STATIC void init_direntry(struct dirent *dentry, unsigned attrib,
#endif
dentry->dir_start = (UWORD)cluster;
dentry->dir_attrib = (UBYTE)attrib;
dentry->dir_time = dos_gettime();
dentry->dir_date = dos_getdate();
dentry->dir_crtime = dos_gettime();
dentry->dir_crdate = dos_getdate();
}
/************************************************************************/