git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - Misc fixes and debug in VTerm/PTY, AxWin3 starts again
[tpg/acess2.git]
/
Usermode
/
Applications
/
wget_src
/
main.c
diff --git
a/Usermode/Applications/wget_src/main.c
b/Usermode/Applications/wget_src/main.c
index
3410840
..
9b5391f
100644
(file)
--- a/
Usermode/Applications/wget_src/main.c
+++ b/
Usermode/Applications/wget_src/main.c
@@
-11,6
+11,7
@@
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
+#include <acess/sys.h> // _SysDebug
enum eProcols
{
enum eProcols
{
@@
-164,7
+165,7
@@
int main(int argc, char *argv[])
if( state == 2 )
{
_SysDebug("RXing %i bytes to '%s'", bytes_wanted, outfile);
if( state == 2 )
{
_SysDebug("RXing %i bytes to '%s'", bytes_wanted, outfile);
- int outfd = open(outfile, O_WR|O_CREAT, 0666);
+ int outfd = open(outfile, O_WR
ONLY
|O_CREAT, 0666);
if( outfd == -1 ) {
fprintf(stderr, "Unable to open '%s' for writing\n", outfile);
}
if( outfd == -1 ) {
fprintf(stderr, "Unable to open '%s' for writing\n", outfile);
}
UCC
git Repository :: git.ucc.asn.au