Use stat() to check permissions in checkset_perm() (Dave Holland)
authorMikael Berthe <mikael@lilotux.net>
Fri, 11 Apr 2008 21:55:11 +0200
changeset 1459 d76eff4ed71d
parent 1458 17e95be6c39b
child 1460 af54d33facd0
Use stat() to check permissions in checkset_perm() (Dave Holland) Patch from Dave Holland in the Debian BTS (#475182).
mcabber/src/utils.c
--- 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()) {