kolyvan / kxsmb

KxSMB is objective-c wrapper for libsmbclient (samba.org) lib.
BSD 2-Clause "Simplified" License
285 stars 92 forks source link

createFile alway overwrites existing file #17

Open flobjective opened 10 years ago

flobjective commented 10 years ago

The method createFileAtPath:(NSString *) path overwrite:(BOOL)overwrite overwrites even if overwrite is set to NO. This can be fixed by replacing smbc_getFunctionCreat with smbc_getFunctionOpen in the underlying createFile method (line 1675 in the .m).