Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a27b48b1
Commit
a27b48b1
authored
Jan 31, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle set_file_time requests changing only one of access/mod time.
parent
d757fc60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
file.c
server/file.c
+12
-7
No files found.
server/file.c
View file @
a27b48b1
...
...
@@ -411,17 +411,22 @@ int set_file_time( int handle, time_t access_time, time_t write_time )
if
(
!
(
file
=
get_file_obj
(
current
->
process
,
handle
,
GENERIC_WRITE
)))
return
0
;
utimbuf
.
actime
=
access_time
;
utimbuf
.
modtime
=
write_time
;
if
(
utime
(
file
->
name
,
&
utimbuf
)
==
-
1
)
if
(
!
access_time
||
!
write_time
)
{
file_set_error
();
release_object
(
file
);
return
0
;
struct
stat
st
;
if
(
stat
(
file
->
name
,
&
st
)
==
-
1
)
goto
error
;
if
(
!
access_time
)
access_time
=
st
.
st_atime
;
if
(
!
write_time
)
write_time
=
st
.
st_mtime
;
}
utimbuf
.
actime
=
access_time
;
utimbuf
.
modtime
=
write_time
;
if
(
utime
(
file
->
name
,
&
utimbuf
)
==
-
1
)
goto
error
;
release_object
(
file
);
return
1
;
error:
file_set_error
();
release_object
(
file
);
return
0
;
}
int
file_lock
(
struct
file
*
file
,
int
offset_high
,
int
offset_low
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment