[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#167185: tetex-bin: postrm script fails when homedirectory of user calling the script is non-existant



From: "Christian T. Steigies" <cts@debian.org>
Subject: Bug#167185: tetex-bin: postrm script fails when homedirectory of user calling the script is non-existant
Date: Wed, 30 Oct 2002 23:39:49 -0500

> This is where the script fails:
>             if [ -d /var/cache/fonts ]; then
>                 cd /var/cache/fonts
>                 rm -rf source tfm pk
>                 cd
>                 ^^ fails because the user has no homedir
>                 rmdir /var/cache/fonts 2>/dev/null || true
>             fi
>             ;;
> 
> I suggest you change that to cd / or something else that definetely exists.
> I aggree its pretty uncommon for the home directory of the user who calls
> the postrm script not to exist, but maybe for buildd's its more common.

Well, is "cd /var/cache" okay ?

Best regards,		      2002/11/1

-- 
 Debian Developer & Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <kohda@debian.org>
 Department of Math., Tokushima Univ.



Reply to: