Frostie,
> I'm compiling wrapper in majordomo 1.93 on a Linux box. I've changed the
> line in wrapper.c
>
> char setgroups_used = "setgroups_was_included"; /* give strings a hint */
>
> to
>
> char *setgroups_used = "setgroups_was_included"; /* give strings a hint */
>
>
> but I come up with another error during compilation:
> wrapper.c:65: warning: comparison between pointer and integer
>
> Line 65 of wrapper.c:
>
> 65: if (STRCHR(argv[1], '/') != (char *) NULL) {
> 66: /* this error message is intentionally cryptic */
> 67: fprintf(stderr, "%s: error: insecure usage\n", argv[0]);
> 68: exit(2);
>
> I've been using wrapper with the errors, no problems that I'm aware of...
>
> How do I fix this (or do I need to)?
> Frostie Sprout
I had the same errors under Solaris 5.4. I changed
> 65: if (STRCHR(argv[1], '/') != (char *) NULL) {
to:
=> 65: if (STRCHR(argv[1], '/') != NULL) {
and it got rid of the error. depends on what your compiler did with
the mapping as to whether it will cause problems, most likely not as
it produced a warning.
fj..
References:
|
|