22 May
2008
22 May
'08
7:52 a.m.
I found 2 related bugs in Ptlib unix.
1. PFile::SetPermission ignore group and other read permission in the permission parameter
When you call SetPermission(path, 0600), the function apply instead 0644.
The patch fix the issue by not adding group and other read permission if not set by the caller.
2. PXConfig::WriteToFile change config file owner, group and permissions
The function try to perform atomic write by writing to a ".new" file, then renaming the ".new" file to the old file. The new file is created with the current user and group, using the default hardcoded permissions.
The patch fix the permissions change by copying the permissions from the old file.
The patch does not fix the user and group change.