]> git.saurik.com Git - apt.git/commitdiff
Use /var/empty as the homedir for _apt
authorMichael Vogt <mvo@ubuntu.com>
Thu, 25 Sep 2014 09:39:16 +0000 (11:39 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Thu, 25 Sep 2014 09:39:16 +0000 (11:39 +0200)
Thanks to Axel Beckert

debian/apt.postinst

index fab02650472f379ddc2f6a69f89d7a7d72e38e89..a538abde988bdbaf07c685d77c00e5b672df4330 100644 (file)
@@ -27,8 +27,8 @@ case "$1" in
        fi
 
         # add unprivileged user for the apt methods
-        adduser --force-badname --system --no-create-home \
-            --quiet _apt || true
+        adduser --force-badname --system -home /var/empty \
+            --no-create-home --quiet _apt || true
         chown -R _apt:root \
             /var/lib/apt/lists \
             /var/cache/apt/archives