diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-02 16:22:20 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-02 16:22:20 +0000 |
commit | aca19813ad750b59249e6682809b39eb3431838f (patch) | |
tree | 9c62e2add98ec5784a101cdf81438ac40d49555b /src/common/weeconfig.c | |
parent | 7dbaec1abf5ec1c7a6ae61439a615c48106013e6 (diff) | |
download | weechat-aca19813ad750b59249e6682809b39eb3431838f.zip |
Added chmod on ~/.weeechat/weechat.rc file (only onwer can read/write)
Diffstat (limited to 'src/common/weeconfig.c')
-rw-r--r-- | src/common/weeconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index ea88d11b7..0d156d1d5 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -33,6 +33,7 @@ #include <time.h> #include <pwd.h> #include <sys/types.h> +#include <sys/stat.h> #include "weechat.h" #include "weeconfig.h" @@ -1272,6 +1273,7 @@ config_create_default () fprintf (file, "server_autorejoin=on\n"); fclose (file); + chmod (filename, 0600); free (filename); return 0; } @@ -1418,6 +1420,7 @@ config_write (char *config_name) } fclose (file); + chmod (filename, 0600); free (filename); return 0; } |