git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e209c8b
)
Fix formatting.
author
Jelmer Vernooij
<jelmer@samba.org>
Wed, 5 Mar 2008 16:30:18 +0000
(17:30 +0100)
committer
Gerald W. Carter
<jerry@samba.org>
Wed, 23 Apr 2008 18:39:01 +0000
(13:39 -0500)
(cherry picked from commit
e2345ce90c3f1548f63d720c5943c8d61fdc899a
)
source/utils/smbget.c
patch
|
blob
|
history
diff --git
a/source/utils/smbget.c
b/source/utils/smbget.c
index 687a0383cfb761a35667dad290560050879d2c27..e5f962fda8288b956765a8baf26904ea726ad061 100644
(file)
--- a/
source/utils/smbget.c
+++ b/
source/utils/smbget.c
@@
-313,9
+313,8
@@
static int smb_download_file(const char *base, const char *name, int recursive,
smbc_close(remotehandle);
return 0;
}
- /* else open it for writting and truncate if it exists */
- localhandle = open(newpath, O_CREAT | O_NONBLOCK | O_RDWR |
- O_TRUNC, 0775);
+ /* else open it for writing and truncate if it exists */
+ localhandle = open(newpath, O_CREAT | O_NONBLOCK | O_RDWR | O_TRUNC, 0775);
if(localhandle < 0) {
fprintf(stderr, "Can't open %s : %s\n", newpath,
strerror(errno));