The Samba-Bugzilla – Attachment 6418 Details for
Bug 7913
shadow_copy2 module with non-default format parameter requires wide links enabled to work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Possible fix to not require wide links enabled when non-default shadow_copy2 format used
shadow_copy2_wide_links.diff (text/plain), 2.19 KB, created by
Paul B. Henson
on 2011-04-19 23:50:23 UTC
(
hide
)
Description:
Possible fix to not require wide links enabled when non-default shadow_copy2 format used
Filename:
MIME Type:
Creator:
Paul B. Henson
Created:
2011-04-19 23:50:23 UTC
Size:
2.19 KB
patch
obsolete
>*** vfs_shadow_copy2.c.orig 2011-04-19 16:35:21.000000000 -0700 >--- vfs_shadow_copy2.c 2011-04-19 16:38:58.000000000 -0700 >*************** >*** 476,484 **** > if (*relpath == '/') relpath++; > if (*baseoffset == '/') baseoffset++; > >! ret = talloc_asprintf(handle->data, "%s/%s/%s/%s", > snapdir, > snapshot, > baseoffset, > relpath); > DEBUG(6,("convert_shadow2_name: '%s' -> '%s'\n", fname, ret)); >--- 476,485 ---- > if (*relpath == '/') relpath++; > if (*baseoffset == '/') baseoffset++; > >! ret = talloc_asprintf(handle->data, "%s/%s%s%s/%s", > snapdir, > snapshot, >+ *baseoffset ? "/" : "", > baseoffset, > relpath); > DEBUG(6,("convert_shadow2_name: '%s' -> '%s'\n", fname, ret)); >*************** >*** 690,731 **** > return NULL; > } > >! snapdir = shadow_copy2_find_snapdir(tmp_ctx, handle); >! if (snapdir == NULL) { >! DEBUG(2,("no snapdir found for share at %s\n", >! handle->conn->connectpath)); >! TALLOC_FREE(tmp_ctx); >! return NULL; >! } >! >! basedir = shadow_copy2_find_basedir(tmp_ctx, handle); >! if (basedir == NULL) { >! DEBUG(2,("no basedir found for share at %s\n", >! handle->conn->connectpath)); >! TALLOC_FREE(tmp_ctx); >! return NULL; >! } >! >! baselen = strlen(basedir); >! baseoffset = handle->conn->connectpath + baselen; >! >! /* some sanity checks */ >! if (strncmp(basedir, handle->conn->connectpath, baselen) != 0 || >! (handle->conn->connectpath[baselen] != 0 >! && handle->conn->connectpath[baselen] != '/')) { >! DEBUG(0,("shadow_copy2_connectpath: basedir %s is not a " >! "parent of %s\n", basedir, >! handle->conn->connectpath)); >! TALLOC_FREE(tmp_ctx); >! return NULL; >! } >! >! if (*baseoffset == '/') baseoffset++; >! >! ret = talloc_asprintf(talloc_tos(), "%s/%.*s/%s", >! snapdir, >! GMT_NAME_LEN, fname, >! baseoffset); > DEBUG(6,("shadow_copy2_connectpath: '%s' -> '%s'\n", fname, ret)); > TALLOC_FREE(tmp_ctx); > return ret; >--- 691,697 ---- > return NULL; > } > >! ret = convert_shadow2_name(handle, fname, gmt_start); > DEBUG(6,("shadow_copy2_connectpath: '%s' -> '%s'\n", fname, ret)); > TALLOC_FREE(tmp_ctx); > return ret;
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 7913
: 6418 |
6422
|
6905