X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=goodpath.c;h=45066d3c66f569191c1a35e45d251592dd589606;hb=f3530d8198251b72d01da9a07b1fa518446ec0f0;hp=197131427373c4af33155d3e4d7dabe2c727e0ef;hpb=a91c5f78701b90c47a08daa15569ef64c6194504;p=debian%2Fsudo diff --git a/goodpath.c b/goodpath.c index 1971314..45066d3 100644 --- a/goodpath.c +++ b/goodpath.c @@ -50,18 +50,18 @@ sudo_goodpath(path, sbp) /* Check for brain damage */ if (path == NULL || path[0] == '\0') - return(NULL); + return NULL; if (stat(path, &sb)) - return(NULL); + return NULL; /* Make sure path describes an executable regular file. */ if (!S_ISREG(sb.st_mode) || !(sb.st_mode & 0000111)) { errno = EACCES; - return(NULL); + return NULL; } if (sbp != NULL) (void) memcpy(sbp, &sb, sizeof(struct stat)); - return((char *)path); + return (char *)path; }