X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Fmain.c;h=74ca0be0d72aaa9adf9721087bccb1e60f26b5e1;hb=9ce5361de22147d955c6603d8915c68cb1009256;hp=b3bbf7d4a45058bb38a815112b8430f6fb2fe3f1;hpb=d322203c4af88bba3041d46e0810ad9b8688f19a;p=dump.git diff --git a/dump/main.c b/dump/main.c index b3bbf7d..74ca0be 100644 --- a/dump/main.c +++ b/dump/main.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.95 2009/06/18 09:35:14 stelian Exp $"; + "$Id: main.c,v 1.96 2009/07/23 09:34:07 stelian Exp $"; #endif /* not lint */ #include @@ -543,7 +543,7 @@ main(int argc, char *argv[]) } (void)setuid(getuid()); /* rmthost() is the only reason to be setuid */ - if (Apath && (Afile = open(Apath, O_WRONLY|O_CREAT|O_TRUNC, + if (Apath && (Afile = OPEN(Apath, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) < 0) { msg("Cannot open %s for writing: %s\n",