From: Oichinokata <oic...@oi...> - 2014-01-13 14:28:45
|
Dear Ralph, Thank you for your advice. I've wrote a patch and attached it. It seems working well. However, there are some issues. 1. netatalk installer may care to change permission of afp.conf. 2. If afp.conf has illegal permission, afpd will quit immediately. 1. netatalk installer may care to change permission of afp.conf. It is better to execute "chmod 600 afp.conf" when make install. "config/Makefile.am" should be rewritten? 2. If afp.conf has illegal permission, afpd will quit soon. If afp.conf has illegal permission such as 644, it is better afpd will quit immediately. HAT-san advised me as follows. i. Run stat() to check st_mode and st_uid before become_root() ii. If they have bad settings, call LOG() and return -1 What do you think? Thanks for many advice, HAT-san. Kind Regards, Oichi |