proposed fix for issue 630; since m-a u operates on a saved copy of the users authori...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 2 Mar 2009 00:56:41 +0000 (19:56 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 2 Mar 2009 00:56:41 +0000 (19:56 -0500)
src/share/ma/update_users

index a48bbd10c9d1ad528c8b499a15be7437d6d73d6c..67fabb2f7dbfda9e1c11bad71b90662f271c2dcb 100644 (file)
@@ -88,12 +88,11 @@ for uname in $unames ; do
            cat "$authorizedUserIDs" > "$TMP_AUTHORIZED_USER_IDS"
 
            # export needed variables
-           export FILE_OWNER="$uname"
            export AUTHORIZED_KEYS
            export TMP_AUTHORIZED_USER_IDS
 
            # process authorized_user_ids file, as monkeysphere user
-           su_monkeysphere_user \
+           FILE_OWNER="$MONKEYSPHERE_USER" su_monkeysphere_user \
                ". ${SYSSHAREDIR}/common; process_authorized_user_ids $TMP_AUTHORIZED_USER_IDS" \
                || returnCode="$?"
        else