comparison mcabber/src/utils.h @ 362:d8f147d6e872

Check directory and config file permissions * Check history directory and configuration file permissions, and correct them to 0700 and 0600 if necessary. * Warn when mcabber main directory ($HOME/.mcabber) has bad permissions * Reset UseFileLogging & FileLoadLogs when the log dir does not exist
author Mikael Berthe <mikael@lilotux.net>
date Sun, 24 Jul 2005 14:37:27 +0100
parents f562b9af2de7
children 33b8e801ffa6
comparison
equal deleted inserted replaced
361:51ff319947c3 362:d8f147d6e872
2 #define __UTILS_H__ 1 2 #define __UTILS_H__ 1
3 3
4 void ut_InitDebug(unsigned int level, const char *file); 4 void ut_InitDebug(unsigned int level, const char *file);
5 void ut_WriteLog(const char *fmt, ...); 5 void ut_WriteLog(const char *fmt, ...);
6 6
7 int checkset_perm(const char *name, unsigned int setmode);
8
7 int to_iso8601(char *dststr, time_t timestamp); 9 int to_iso8601(char *dststr, time_t timestamp);
8 time_t from_iso8601(const char *timestamp, int utc); 10 time_t from_iso8601(const char *timestamp, int utc);
9 11
10 #endif 12 #endif