Typo/bug in pm-utils (FC5)?

Leon sdl.web at gmail.com
Thu Apr 27 18:13:45 UTC 2006


wwp <subscript at free.fr> writes:

> Hello all,
>
>
> isn't there a typo in /etc/pm/functions from pm-utils-0.15-1 (FC5)?
> I was wondering in what directory ./suspended was looked for.. until I read
> the next lines, who make reference to /.suspended!
>
> --- functions.orig      2006-04-23 23:52:00.000000000 +0200
> +++ functions   2006-04-23 23:50:11.000000000 +0200
> @@ -104,7 +104,7 @@
>  {
>         VT=$(/usr/bin/fgconsole)
>         chvt 63
> -       if [ -f ./suspended ]; then
> +       if [ -f /.suspended ]; then
>                 pid=$(cat /.suspended)
>                 if [ -d /proc/$pid ]; then
>                         return 1
>
>
> Regards,
>
> -- 
> wwp

There are three appearances of /.suspended. I guess it is not a
bug. But any reason to put .suspended in /?

-- 
Leon




More information about the fedora-list mailing list