The Samba-Bugzilla – Attachment 7559 Details for
Bug 8941
Solved problem with hard links and schg flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch for syscall.c
patch-syscall.c.txt (text/plain), 793 bytes, created by
Franz Schwartau
on 2012-05-14 17:23:37 UTC
(
hide
)
Description:
Patch for syscall.c
Filename:
MIME Type:
Creator:
Franz Schwartau
Created:
2012-05-14 17:23:37 UTC
Size:
793 bytes
patch
obsolete
>--- syscall.c.orig 2012-05-07 16:30:28.000000000 +0200 >+++ syscall.c 2012-05-07 16:30:44.000000000 +0200 >@@ -114,8 +114,16 @@ > #ifdef SUPPORT_FORCE_CHANGE > if (force_change && (errno == EPERM || errno == EACCES)) { > char parent[MAXPATHLEN]; >+ int parent_flags; > int saved_errno = errno; >- int parent_flags = make_parentdir_mutable(fname2, force_change, parent, sizeof parent); >+ int file_flags = make_mutable(fname1, NULL, NO_FFLAGS, force_change); >+ if (file_flags) { >+ int ret = link(fname1, fname2); >+ undo_make_mutable(fname1, file_flags); >+ if (ret == 0) >+ return 0; >+ } >+ parent_flags = make_parentdir_mutable(fname2, force_change, parent, sizeof parent); > if (parent_flags) { > int ret = link(fname1, fname2); > undo_make_mutable(parent, parent_flags);
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 Raw
Actions:
View
Attachments on
bug 8941
: 7559