[cowdancer] 03/03: ilistcreate: Ensure .ilist has the correct permissions

James Clarke jrtc27 at moszumanska.debian.org
Fri Aug 25 18:41:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

jrtc27 pushed a commit to branch master
in repository cowdancer.

commit 4490c7993975a96d429a1609175e9f265f9ee942
Author: James Clarke <jrtc27 at debian.org>
Date:   Fri Aug 25 19:39:07 2017 +0100

    ilistcreate: Ensure .ilist has the correct permissions
    
    Closes: #872597
---
 ilistcreate.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ilistcreate.c b/ilistcreate.c
index 59c1818..029b8f0 100644
--- a/ilistcreate.c
+++ b/ilistcreate.c
@@ -80,6 +80,12 @@ int ilistcreate(const char *ilistpath, const char *findcommandline) {
 		return 1;
 	}
 
+	if (chmod(ilistpath, 0644)) {
+		ilist_outofmemory("failed to chmod .ilist file");
+		free(ilist);
+		return 1;
+	}
+
 	if (1 != fwrite(&header, sizeof(struct ilist_header), 1, outf)) {
 		ilist_outofmemory("failed writing header to .ilist file");
 		free(ilist);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/cowdancer.git



More information about the Pbuilder-maint mailing list