bug-coreutils
[Top][All Lists]
Advanced

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

Re: use-pam patch problem


From: Robin Cook
Subject: Re: use-pam patch problem
Date: Sat, 07 Jan 2006 12:19:20 -0600

Would changing the xputenv to putenv work?

Thanks
Robin Cook

On Sat, 2006-01-07 at 10:31 -0600, Robin Cook wrote:
> I am trying to compile coreutils 5.93 with the patch to enable pam use.
> I am getting the below error.
> 
> make[3]: Entering directory `/usr/src/coreutils-5.93/src'
> gcc  -O -march=athlon-mp -mmmx -mfpmath=sse -msse -m3dnow -pipe -DPIC
> -fPIC -O3  -z combreloc -s -o su -lpam_misc
> su.o ../lib/libcoreutils.a  ../lib/libcoreutils.a -lcrypt -ldl -lpam
> -lpam_misc
> su.o: In function `pam_copyenv':
> su.c:(.text+0xe4): undefined reference to `xputenv'
> collect2: ld returned 1 exit status
> make[3]: *** [su] Error 1
> make[2]: *** [all] Error 2
> make[3]: Leaving directory `/usr/src/coreutils-5.93/src'
> make[2]: Leaving directory `/usr/src/coreutils-5.93/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/coreutils-5.93'
> 
> The only place in the patch this appears is here
> 
> +#ifdef USE_PAM
> +static int caught=0;
> +/* Signal handler for parent process later */
> +static void su_catch_sig(int sig)
> +{
> +  ++caught;
> +}
> +
> +int
> +pam_copyenv (pam_handle_t *pamh)
> +{
> +  char **env;
> +
> +  env = pam_getenvlist(pamh);
> +  if(env) {
> +    while(*env) {
> +      xputenv(*env);
> +      env++;
> +    }
> +  }
> +  return(0);
> +}
> +#endif
> 
> What needs to be changed to make this work again?
> 
> Thanks
> Robin Cook
> _______________________________________________
> Bug-coreutils mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-coreutils

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]