Selaa lähdekoodia

base-files: the USERID code path did not check for duplicate groups

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 42919
John Crispin 11 vuotta sitten
vanhempi
sitoutus
5efe2e5e3c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      package/base-files/files/lib/functions.sh

+ 1 - 1
package/base-files/files/lib/functions.sh

@@ -193,7 +193,7 @@ default_postinst() {
 				}
 
 				gid=$id
-				[ -n "$gid" ] && group_add $name $gid
+				[ -n "$gid" ] && group_exists $name || group_add $name $gid
 				[ -z "$gid" ] && {
 					group_add_next $name
 					gid=$?