comparison mcabber/mcabber/utils.c @ 2253:5a107c907e71

Read $HOME/.mcabberrc if there is no mcabber configuration directory This was broken by ccd4ffa41a1b. This patch should fix issue #146.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Feb 2016 11:28:24 +0100
parents 377b6a52b25f
children f5402d705f67
comparison
equal deleted inserted replaced
2252:2c7cca6dec6a 2253:5a107c907e71
313 int checkset_perm(const char *name, unsigned int setmode) 313 int checkset_perm(const char *name, unsigned int setmode)
314 { 314 {
315 int fd; 315 int fd;
316 struct stat buf; 316 struct stat buf;
317 317
318 if (!name) return -1;
319
318 #ifdef __CYGWIN__ 320 #ifdef __CYGWIN__
319 // Permission checking isn't efficient on Cygwin 321 // Permission checking isn't efficient on Cygwin
320 return 0; 322 return 0;
321 #endif 323 #endif
322 324