The Samba-Bugzilla – Attachment 12552 Details for
Bug 12273
copy file from samba to windows error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
possible fix
sysquotas.patch (text/plain), 859 bytes, created by
Uri Simchoni
on 2016-10-07 06:07:52 UTC
(
hide
)
Description:
possible fix
Filename:
MIME Type:
Creator:
Uri Simchoni
Created:
2016-10-07 06:07:52 UTC
Size:
859 bytes
patch
obsolete
>diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c >index c2d09da..eef87be 100644 >--- a/source3/lib/sysquotas.c >+++ b/source3/lib/sysquotas.c >@@ -82,6 +82,8 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char > } > > while (true) { >+ char save_ch; >+ > p = strrchr(stat_mntpath, '/'); > if (p == NULL) { > DBG_ERR("realpath for %s does not begin with a '/'\n", >@@ -93,6 +95,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char > ++p; > } > >+ save_ch = *p; > *p = 0; > if (sys_stat(stat_mntpath, &S, false) != 0) { > DBG_WARNING("cannot stat real path component %s - %s\n", >@@ -100,7 +103,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char > goto out; > } > if (S.st_ex_dev != devno) { >- *p = '/'; >+ *p = save_ch; > break; > } >
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 12273
:
12552
|
12554