Package: geneweb
Severity: serious
Tags: patch

The postinst script is missing proper quoting of variables which lead
to failures when database names contain spaces.

Patch attached.

----- Forwarded message from Christian Gennerat <x...@melix.org> -----

Date: Thu, 03 Dec 2009 22:37:31 -0000
From: Christian Gennerat <x...@melix.org>
To: bubu...@debian.org
Subject: [Bug 492120] Re: package geneweb 5.01-9 failed to install/upgrade: le
        sous-processus script post-installation install? a retourn? une
        erreur de sortie d'?tat 1
Reply-To: Bug 492120 <492...@bugs.launchpad.net>
X-CRM114-Status: Good  ( pR: 13.3014 )

chgrp: ne peut accéder `/home/xg/gw/billy.gwb/base_d/wiznotes_d/T.de': 
Aucun fichier ou dossier de ce type
dpkg : erreur de traitement de geneweb (--configure) :

The file /home/xg/gw/billy.gwb/base_d/wiznotes_d/T.de Boeuf.txt 
really exists, but the space character shoud be escaped with \ in the shell 
script

-- 
package geneweb 5.01-9 failed to install/upgrade: le sous-processus script 
post-installation install? a retourn? une erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/492120
You received this bug notification because you are subscribed to geneweb
in ubuntu.

----- End forwarded message -----

-- 


Index: debian/geneweb.postinst
===================================================================
--- debian/geneweb.postinst     (révision 14657)
+++ debian/geneweb.postinst     (copie de travail)
@@ -169,19 +169,19 @@
        # Bug: 179918
        for base in `find $GENEWEBDB -type d -name \*.gwb`
        do
-           chgrp $USERS_GROUP $base
-           chmod g+w,g+s $base
+           chgrp $USERS_GROUP "$base"
+           chmod g+w,g+s "$base"
            # Fix files permissions. See #219779
            for file in `find $base -type f`
            do
-               chgrp $USERS_GROUP $file
-               chmod g+w $file
+               chgrp $USERS_GROUP "$file"
+               chmod g+w "$file"
            done
        done
        for imagedir in `find $GENEWEBDB/images -type d`
        do
-           chgrp $USERS_GROUP $imagedir
-           chmod g+w,g+s $imagedir
+           chgrp $USERS_GROUP "$imagedir"
+           chmod g+w,g+s "$imagedir"
        done
 
        # Values are read from debconf

Attachment: signature.asc
Description: Digital signature

Reply via email to