[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with pagsh in AFS directory
On Tue, 27 Jul 2004, Love wrote:
> Alf Wachsmann <alfw@SLAC.Stanford.EDU> writes:
> >
> > we found a weired difference between AFS' pagsh and Heimdal's pagsh.
> >
> > When executed in an AFS directory with_out_ "system:anyuser l"
> > permissions, the following command
> > /opt/heimdal/bin/pagsh -c "exec /bin/pwd"
> > fails with
> > pagsh: execvp: Permission denied
> >
> > The same command with AFS' pagsh works just fine.
> >
> > Adding "system:anyuser l" permissions to the AFS directory I am
> > executing this test in makes the Heimdal pagsh work.
> >
> > Is this a bug or a feature?
>
> Its pagsh that eats -c, with this patch I don't have your problem.
This patch does the job!
Many thanks,
Alf.
> --- appl/afsutil/pagsh.c 14 Oct 2003 12:32:39 -0000 1.8
> +++ appl/afsutil/pagsh.c 27 Jul 2004 10:46:26 -0000
> @@ -172,7 +172,7 @@
>
> unsetenv("PAGPID");
> execvp(path, args);
> - if (errno == ENOENT) {
> + if (errno == ENOENT || c_flag) {
> char **sh_args = malloc ((i + 2) * sizeof(char *));
> int j;
>
>
-----------------------------------------------------------------------
Alf Wachsmann | e-mail: alfw@slac.stanford.edu
SLAC Computing Service | Phone: +1-650-926-4802
2575 Sand Hill Road, M/S 97 | FAX: +1-650-926-3329
Menlo Park, CA 94025, USA | Office: Bldg. 50/323
-----------------------------------------------------------------------
http://www.slac.stanford.edu/~alfw (PGP)
-----------------------------------------------------------------------