summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-03-05 17:30:18 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-03-05 17:30:18 +0100
commitd41d580c600e3228ff8fee5c16c47580f661a240 (patch)
treebd46d97f057daaf174b5709329efd35b5df9150d
parenta7af17ef80983e3d6394dd97bb5e05d70b376a3b (diff)
downloadsamba-d41d580c600e3228ff8fee5c16c47580f661a240.tar.gz
samba-d41d580c600e3228ff8fee5c16c47580f661a240.tar.bz2
samba-d41d580c600e3228ff8fee5c16c47580f661a240.zip
Fix formatting.
(This used to be commit e2345ce90c3f1548f63d720c5943c8d61fdc899a)
-rw-r--r--source3/utils/smbget.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c
index 5b2149b843..e5185d09f0 100644
--- a/source3/utils/smbget.c
+++ b/source3/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));