fix tempfile warning in diaspora-common postinst
Created by: Praveen Arimbrathodiyil
We could use dedconf's db_set and db_get methods instead of using the tempfile method. @balasankarc is there another method to pass information from preinst script to config file?
W: diaspora-common: possibly-insecure-handling-of-tmp-files-in-maintainer-script config:10
W: diaspora-common: possibly-insecure-handling-of-tmp-files-in-maintainer-script preinst:21
@balasankarc we'll give this to whoever finishes their second package first from @sudheeshshetty , @isaagar and @rahulkrishnanfs
Imported comments:
By Balasankar C on 2016-02-08T10:31:07.929Z
@balasankarc is there another method to pass information from preinst script to config file?
I don't think so (I don't know about if there exists another method). Using db_set
and db_get
is the correct way to go, as they are specifically for that purpose : "Store values from maintainer scripts to the debconf db"
By Praveen Arimbrathodiyil on 2016-02-08T09:58:14.189Z
Added ~141053 label