[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with pagsh in AFS directory
Alf Wachsmann <alfw@SLAC.Stanford.EDU> writes:
> Hi,
>
> 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.
Love
--- 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;
PGP signature