# HG changeset patch # User Mikael Berthe # Date 1207943711 -7200 # Node ID d76eff4ed71d7c633342b0512fd3067a754974bf # Parent 17e95be6c39bfcb1697aa1cce0bdc60ddd861e33 Use stat() to check permissions in checkset_perm() (Dave Holland) Patch from Dave Holland in the Debian BTS (#475182). diff -r 17e95be6c39b -r d76eff4ed71d 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()) {