From: <no...@gi...> - 2011-02-20 10:16:59
|
Branch: refs/heads/master Home: https://github.com/znc/znc Commit: cd7822548266ab9d88781599e041866a92234b29 https://github.com/znc/znc/commit/cd7822548266ab9d88781599e041866a92234b29 Author: Uli Schlachter <ps...@zn...> Date: 2011-02-20 (Sun, 20 Feb 2011) Changed paths: M znc.cpp Log Message: ----------- Don't expand ~ in ISpoofFile This way, we can write the original value back to the config. Also, this "fixes" a bug because webadmin didn't do this step. Signed-off-by: Uli Schlachter <ps...@zn...> Commit: f69aeff3d9ef15c7bef34daca9dd93327f23a087 https://github.com/znc/znc/commit/f69aeff3d9ef15c7bef34daca9dd93327f23a087 Author: Uli Schlachter <ps...@zn...> Date: 2011-02-20 (Sun, 20 Feb 2011) Changed paths: M znc.cpp Log Message: ----------- Some minor cleanup This makes the code use GetISpoofFile() instead of accessing m_sISpoofFile directly. Additonally, CFile::GetLongName() is used for printing the filepath. (This also removes an useless if branch, because nothing here cares if m_sISpoofFile is empty, we just need the lock file.) Signed-off-by: Uli Schlachter <ps...@zn...> Commit: ce10cee260edceaa64daec4672fbdf3a60647af0 https://github.com/znc/znc/commit/ce10cee260edceaa64daec4672fbdf3a60647af0 Author: Uli Schlachter <ps...@zn...> Date: 2011-02-20 (Sun, 20 Feb 2011) Changed paths: M znc.h Log Message: ----------- Correctly handle "~" in SSLCertFile This works correctly because only the config writing/reading accesses CZNC::m_sSSLCertFile directly, everything else goes through this getter. This ChangeDir() call will also "sanitize" the path. E.g. "/foo//..//home///" will be turned into "/home/" and stuff like that. Signed-off-by: Uli Schlachter <ps...@zn...> Commit: cb2e50a5bd79697c3299d50d5e2596821d87fa62 https://github.com/znc/znc/commit/cb2e50a5bd79697c3299d50d5e2596821d87fa62 Author: Uli Schlachter <ps...@zn...> Date: 2011-02-20 (Sun, 20 Feb 2011) Changed paths: M FileUtils.cpp Log Message: ----------- CFile: Handle paths like "~/foo" This let's CFile expand relative-to-home paths. I "accidentally" broke ISpoofFile with some recent commit and that is now fixed with this. This should solve this problem for quite a lot of other places, too. Idea (c) by DarthGandalf, thanks. :) Signed-off-by: Uli Schlachter <ps...@zn...> |