From 9a415b14b298406c7f61f76ec836e1086718ed60 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Tue, 26 May 2009 20:57:55 +0000 Subject: [PATCH] Fix a regression with sft_flags overwriting what dos_open wrote so file dates/times would always be updated, even for reads! git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1406 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/dosfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dosfns.c b/kernel/dosfns.c index 60f701e..f5b6b02 100644 --- a/kernel/dosfns.c +++ b/kernel/dosfns.c @@ -576,6 +576,7 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib) return DE_ACCESS; sftp->sft_count++; + sftp->sft_flags = PriPathName[0] - 'A'; result = dos_open(PriPathName, flags, attrib, sft_idx); if (result >= 0) { @@ -590,7 +591,6 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib) return DE_ACCESS; } } - sftp->sft_flags = PriPathName[0] - 'A'; DosGetFile(PriPathName, sftp->sft_name); return sft_idx | ((long)result << 16); }