diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-08-12 13:46:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-08-12 20:52:35 +0200 |
commit | a29216b1e1a56867b6da2b5526b0bd44ea6c2c05 (patch) | |
tree | 625dae9f1d5dc0de5ae6c6fa5ce46d0b63b3b8f8 /openbsc/src/vty | |
parent | beccbc3fbe231373aecdeb8de8210ac9202e3ebd (diff) |
vty/command: Use CONFIGFILE_MASK as mask in chmod and not as mode.
Diffstat (limited to 'openbsc/src/vty')
-rw-r--r-- | openbsc/src/vty/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/vty/command.c b/openbsc/src/vty/command.c index c32e703f4..6372fb13b 100644 --- a/openbsc/src/vty/command.c +++ b/openbsc/src/vty/command.c @@ -2541,7 +2541,7 @@ DEFUN(config_write_file, talloc_free(config_file_sav); talloc_free(config_file_tmp); - if (chmod(config_file, CONFIGFILE_MASK) != 0) { + if (chmod(config_file, 0666 & ~CONFIGFILE_MASK) != 0) { vty_out(vty, "Can't chmod configuration file %s: %s (%d).%s", config_file, strerror(errno), errno, VTY_NEWLINE); return CMD_WARNING; |