diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2010-05-25 12:15:18 -0600 |
|---|---|---|
| committer | Rich Megginson <rmeggins@redhat.com> | 2010-05-26 13:46:57 -0600 |
| commit | 8e6e74009c80a7032308657e71450cb5aed9483c (patch) | |
| tree | e7bb7a6b150b03ca0db65c397c4fec1c0d51c883 /ldap/admin/src/scripts/50nameuidsyntaxplugin.ldif | |
| parent | caaa2b7c5fdab6d3bf8c3155f32020eae8fc82ce (diff) | |
| download | ds-8e6e74009c80a7032308657e71450cb5aed9483c.tar.gz ds-8e6e74009c80a7032308657e71450cb5aed9483c.tar.xz ds-8e6e74009c80a7032308657e71450cb5aed9483c.zip | |
Bug 593392 - setup-ds-admin.pl -k creates world readable file
https://bugzilla.redhat.com/show_bug.cgi?id=593392
Resolves: bug 593392
Bug Description: setup-ds-admin.pl -k creates world readable file
Reviewed by: thoger (Thanks!)
Branch: HEAD
Fix Description: Use umask to make sure we create a .inf file that is
only viewable by the user. In addition, only create the temp file and
filename when necessary. In some places, the code was creating a .inf
file on disk when it could just create one in memory. The code should
check to see if the Inf object has a file associated with it before
attemtping to unlink it. Make sure we do not unlink a .inf file given
with -f on the command line. If the user specified -k, always write to
a temp file using __temp__ as the keyword to tell Inf->write to generate
a temp file.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
Diffstat (limited to 'ldap/admin/src/scripts/50nameuidsyntaxplugin.ldif')
0 files changed, 0 insertions, 0 deletions
