Re: [RFC][PATCH] scripts with stdin replaced

(no name) ((no email))
13 Jul 1999 07:05:11 -0400


>>>>> "Jamie" == Jamie Lokier <lkd@tantalophile.demon.co.uk> writes:
> When /proc is mounted, run all scripts using /proc/self/fd.

No, you don't want /proc/self/fd unless it's really necessary (setuid)
because it loses the path information which is going to break some scripts.
This loss is not important for setuid scripts (they didn't work before
anyway).
And using a /proc/self/<scriptname> trick is not enough either.
The whole path might be useful (to find other files in the same dir as the
scripts, ...)

Stefan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/