[SSSD] [INI] Patches for ding-libs: Merging config sections, handling metadata, remaining Coverity issues...

Jan Zelený jzeleny at redhat.com
Tue Apr 3 08:08:38 UTC 2012


> Ok the whole set once more:
> 
> 1) Fixed the trailing spaces on patch 15 - they showed as warning when I
> applied the patch in a different repo
> 2) The problem with permissions that Jan have seen was caused by the
> fact that when the repo is created as root the permissions on the files
> that are used in tests are different. For now I added a different check.
> In future there might be a need for some improvement in this area. I
> created a task https://fedorahosted.org/sssd/ticket/1284 to track this
> effort.
> 3) Added two missing cleanup calls to patch 27 as Jan rightly indicated
> that they were missing
> 
> All the rest is the same.

I'm not completely comfortable with your solution of the access check. You are 
just assuming in the comment that the file was created by root and has 
therefore different permissions. But what if it wasn't created by root and 
still has these different permissions? I think the test could then let an error 
in the code pass through. Please check that the file indeed belongs to root 
just to be sure. Also error2 is not necessary IMO, you can re-user error.

This is the last minor change I'm asking for. If you want, I'll do it for you. 
Other than that all patches are fine.

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120403/0907099e/attachment.sig>


More information about the sssd-devel mailing list