At declaration of the flag, it looks like gflags converts the default logfile_mode octet "0644" to the proper decimal integer (420). When parsing argv or flagfile, gflags seems to convert the string to an integer, strips the leading zero and a decimal value (ie, 644) gets passed to os.chmod() in the end.
At declaration of the flag, it looks like gflags converts the default logfile_mode octet "0644" to the proper decimal integer (420). When parsing argv or flagfile, gflags seems to convert the string to an integer, strips the leading zero and a decimal value (ie, 644) gets passed to os.chmod() in the end.
Patch proposed upstream @ https:/ /review. openstack. org/#change, 758