changeset 1459:d76eff4ed71d

Use stat() to check permissions in checkset_perm() (Dave Holland) Patch from Dave Holland in the Debian BTS (#475182).
author Mikael Berthe <mikael@lilotux.net>
date Fri, 11 Apr 2008 21:55:11 +0200
parents 17e95be6c39b
children af54d33facd0
files mcabber/src/utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/utils.c	Fri Apr 11 21:24:02 2008 +0200
+++ b/mcabber/src/utils.c	Fri Apr 11 21:55:11 2008 +0200
@@ -139,7 +139,7 @@
   return 0;
 #endif
 
-  fd = lstat(name, &buf);
+  fd = stat(name, &buf);
   if (fd == -1) return -1;
 
   if (buf.st_uid != geteuid()) {