From 78488dc84afac1398e582ae6bbaf9606d07afa1e Mon Sep 17 00:00:00 2001 From: John Denker Date: Sat, 2 Jun 2012 18:38:28 -0700 Subject: checkpassword ... as downloaded --- checkpasswd/open_trunc.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 checkpasswd/open_trunc.c (limited to 'checkpasswd/open_trunc.c') diff --git a/checkpasswd/open_trunc.c b/checkpasswd/open_trunc.c new file mode 100644 index 0000000..77b99ef --- /dev/null +++ b/checkpasswd/open_trunc.c @@ -0,0 +1,6 @@ +#include +#include +#include "open.h" + +int open_trunc(char *fn) +{ return open(fn,O_WRONLY | O_NDELAY | O_TRUNC | O_CREAT,0644); } -- cgit v1.2.3