FreeBSD Bugzilla – Attachment 9837 Details for
Bug 19973
restore does not set access/modification times correctly for immutable files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.52 KB, created by
Arjan.deVet
on 2000-07-16 21:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Arjan.deVet
Created:
2000-07-16 21:20:00 UTC
Size:
1.52 KB
patch
obsolete
>Index: dirs.c >=================================================================== >RCS file: /home/freebsd/CVS/src/sbin/restore/dirs.c,v >retrieving revision 1.14 >diff -u -r1.14 dirs.c >--- dirs.c 1999/08/28 00:14:05 1.14 >+++ dirs.c 2000/07/15 14:33:15 >@@ -631,8 +631,8 @@ > cp = myname(ep); > (void) chown(cp, node.uid, node.gid); > (void) chmod(cp, node.mode); >- (void) chflags(cp, node.flags); > utimes(cp, node.timep); >+ (void) chflags(cp, node.flags); > ep->e_flags &= ~NEW; > } > } >Index: tape.c >=================================================================== >RCS file: /home/freebsd/CVS/src/sbin/restore/tape.c,v >retrieving revision 1.16 >diff -u -r1.16 tape.c >--- tape.c 1999/08/28 00:14:08 1.16 >+++ tape.c 2000/07/15 14:33:15 >@@ -581,9 +581,9 @@ > } > (void) chown(name, curfile.dip->di_uid, curfile.dip->di_gid); > (void) chmod(name, mode); >+ utimes(name, timep); > (void) chflags(name, flags); > skipfile(); >- utimes(name, timep); > return (GOOD); > > case IFCHR: >@@ -603,9 +603,9 @@ > } > (void) chown(name, curfile.dip->di_uid, curfile.dip->di_gid); > (void) chmod(name, mode); >+ utimes(name, timep); > (void) chflags(name, flags); > skipfile(); >- utimes(name, timep); > return (GOOD); > > case IFREG: >@@ -625,10 +625,10 @@ > } > (void) fchown(ofile, curfile.dip->di_uid, curfile.dip->di_gid); > (void) fchmod(ofile, mode); >- (void) fchflags(ofile, flags); > getfile(xtrfile, xtrskip); > (void) close(ofile); > utimes(name, timep); >+ (void) chflags(name, flags); > return (GOOD); > } > /* NOTREACHED */
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 19973
: 9837