The Samba-Bugzilla – Attachment 1160 Details for
Bug 2605
-Tx continues to restore tarfile even if -D failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch.
look (text/plain), 1.27 KB, created by
Jeremy Allison
on 2005-04-14 17:37:40 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-04-14 17:37:40 UTC
Size:
1.27 KB
patch
obsolete
>Index: client/client.c >=================================================================== >--- client/client.c (revision 6344) >+++ client/client.c (working copy) >@@ -260,6 +260,7 @@ > struct cli_state *targetcli; > SMB_STRUCT_STAT sbuf; > uint32 attributes; >+ int ret = 1; > > dos_format(newdir); > >@@ -305,21 +306,23 @@ > pstrcpy(cur_dir,saved_dir); > goto out; > } >- } >- else { >+ } else { > pstrcat( targetpath, "\\" ); > dos_clean_name( targetpath ); > > if ( !cli_chkpath(targetcli, targetpath) ) { > d_printf("cd %s: %s\n", dname, cli_errstr(targetcli)); > pstrcpy(cur_dir,saved_dir); >+ goto out; > } > } > >+ ret = 0; >+ > out: >+ > pstrcpy(cd_path,cur_dir); >- >- return 0; >+ return ret; > } > > /**************************************************************************** >@@ -3170,7 +3173,13 @@ > return 1; > } > >- if (*base_directory) do_cd(base_directory); >+ if (*base_directory) { >+ rc = do_cd(base_directory); >+ if (rc) { >+ cli_cm_shutdown(); >+ return rc; >+ } >+ } > > if (cmdstr) { > rc = process_command_string(cmdstr); >@@ -3233,7 +3242,13 @@ > > recurse=True; > >- if (*base_directory) do_cd(base_directory); >+ if (*base_directory) { >+ ret = do_cd(base_directory); >+ if (ret) { >+ cli_cm_shutdown(); >+ return ret; >+ } >+ } > > ret=process_tar(); >
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 2605
:
1152
| 1160