The Samba-Bugzilla – Attachment 5378 Details for
Bug 7151
rsync does not work on virtualbox shared folders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make files writable before renaming over them
util.patch (text/plain), 534 bytes, created by
Andy Piper
on 2010-02-18 05:39:59 UTC
(
hide
)
Description:
Patch to make files writable before renaming over them
Filename:
MIME Type:
Creator:
Andy Piper
Created:
2010-02-18 05:39:59 UTC
Size:
534 bytes
patch
obsolete
>*** util.c~ 2009-03-03 16:57:43.000000000 +0000 >--- util.c 2010-02-18 11:29:07.268732916 +0000 >*************** >*** 444,449 **** >--- 444,461 ---- > return -2; > do_unlink(from); > return 1; >+ #ifdef HAVE_CHMOD >+ /* Shared folders on virtual box do not allow >+ renaming of RO files, but it is ok to make >+ them writable and then rename */ >+ case EPERM: >+ case EACCES: >+ if (do_chmod(to, S_IWUSR|S_IRUSR) != 0) { >+ return -1; >+ } >+ break; >+ #endif >+ > default: > return -1; > }
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 7151
: 5378