From 727b025799f7c5c37f32c4b57c892faa1e03ba72 Mon Sep 17 00:00:00 2001 From: dscho Date: Thu, 22 Aug 2002 10:13:48 +0000 Subject: synchronized with tightVNC 1.2.5 --- vncauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vncauth.c') diff --git a/vncauth.c b/vncauth.c index 48e5f6e..64e8cbe 100644 --- a/vncauth.c +++ b/vncauth.c @@ -63,7 +63,7 @@ vncEncryptAndStorePasswd(char *passwd, char *fname) /* windows security sux */ #ifndef WIN32 - chmod(fname, S_IRUSR|S_IWUSR); + fchmod(fp, S_IRUSR|S_IWUSR); #endif /* pad password with nulls */ -- cgit v1.2.1