svn commit: samba r5686 - in trunk/source/client: .
jra at samba.org
jra at samba.org
Mon Mar 7 23:54:18 GMT 2005
Author: jra
Date: 2005-03-07 23:54:18 +0000 (Mon, 07 Mar 2005)
New Revision: 5686
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5686
Log:
Fix for bug #2398 from Kevin Dalley <kevin at kelphead.org>.
smbtar shouldn't assume /dev/null means dryrun.
Jeremy.
Modified:
trunk/source/client/clitar.c
Changeset:
Modified: trunk/source/client/clitar.c
===================================================================
--- trunk/source/client/clitar.c 2005-03-07 23:24:19 UTC (rev 5685)
+++ trunk/source/client/clitar.c 2005-03-07 23:54:18 UTC (rev 5686)
@@ -1761,11 +1761,7 @@
}
} else {
- if (tar_type=='c' && (dry_run || strcmp(argv[Optind], "/dev/null")==0)) {
- if (!dry_run) {
- DEBUG(0,("Output is /dev/null, assuming dry_run\n"));
- dry_run = True;
- }
+ if (tar_type=='c' && dry_run) {
tarhandle=-1;
} else if ((tar_type=='x' && (tarhandle = sys_open(argv[Optind], O_RDONLY, 0)) == -1)
|| (tar_type=='c' && (tarhandle=sys_creat(argv[Optind], 0644)) < 0)) {
More information about the samba-cvs
mailing list