X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Fwget_src%2Fmain.c;h=9b5391f13c9e00c53103065934fc419db402ca77;hb=6f00be304598cbaac2ed145f4d2079574717e984;hp=34108407722b97978726c9d3f5913df05603df2a;hpb=d0b4559f2936f6d9f06be0f7c3c51527a480ec0d;p=tpg%2Facess2.git diff --git a/Usermode/Applications/wget_src/main.c b/Usermode/Applications/wget_src/main.c index 34108407..9b5391f1 100644 --- a/Usermode/Applications/wget_src/main.c +++ b/Usermode/Applications/wget_src/main.c @@ -11,6 +11,7 @@ #include #include #include +#include // _SysDebug enum eProcols { @@ -164,7 +165,7 @@ int main(int argc, char *argv[]) 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_WRONLY|O_CREAT, 0666); if( outfd == -1 ) { fprintf(stderr, "Unable to open '%s' for writing\n", outfile); }