FreeBSD Bugzilla – Attachment 84246 Details for
Bug 120208
[patch]: gzip(1) cannot preserve utimes() because it first sets chflags()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 746 bytes, created by
Ighighi
on 2008-02-01 16:00:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ighighi
Created:
2008-02-01 16:00:04 UTC
Size:
746 bytes
patch
obsolete
>--- gzip.c.orig 2007-08-05 22:31:25.000000000 -0400 >+++ gzip.c 2008-02-01 11:08:35.953127226 -0430 >@@ -1075,14 +1077,14 @@ copymodes(int fd, const struct stat *sbp > if (fchmod(fd, sb.st_mode) < 0) > maybe_warn("couldn't fchmod: %s", file); > >- /* only try flags if they exist already */ >- if (sb.st_flags != 0 && fchflags(fd, sb.st_flags) < 0) >- maybe_warn("couldn't fchflags: %s", file); >- > TIMESPEC_TO_TIMEVAL(×[0], &sb.st_atimespec); > TIMESPEC_TO_TIMEVAL(×[1], &sb.st_mtimespec); > if (futimes(fd, times) < 0) > maybe_warn("couldn't utimes: %s", file); >+ >+ /* only try flags if they exist already */ >+ if (sb.st_flags != 0 && fchflags(fd, sb.st_flags) < 0) >+ maybe_warn("couldn't fchflags: %s", file); > } > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 120208
: 84246