projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da076e
)
Eliminate unnecessary save-modify-restore around fsmUtime()
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 16 Jan 2012 09:31:02 +0000
(11:31 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 16 Jan 2012 09:31:02 +0000
(11:31 +0200)
lib/fsm.c
patch
|
blob
|
history
diff --git
a/lib/fsm.c
b/lib/fsm.c
index
c30710c
..
c4c6420
100644
(file)
--- a/
lib/fsm.c
+++ b/
lib/fsm.c
@@
-1998,10
+1998,7
@@
if (!(fsm->mapFlags & CPIO_ALL_HARDLINKS)) break;
if (!rc)
rc = fsmChmod(fsm->path, fsm->sb.st_mode);
if (!rc) {
- time_t mtime = st->st_mtime;
- st->st_mtime = rpmfiFMtimeIndex(fi, fsm->ix);
- rc = fsmUtime(fsm->path, st->st_mtime);
- st->st_mtime = mtime;
+ rc = fsmUtime(fsm->path, rpmfiFMtimeIndex(fi, fsm->ix));
/* utime error is not critical for directories */
if (rc && S_ISDIR(st->st_mode))
rc = 0;