lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

setuid-wrapper: Fix broken string comparison

+1 -1
+1 -1
nixos/modules/security/setuid-wrapper.c
··· 30 30 creating hard link `X' from some other location, along with a 31 31 false `X.real' file, to allow arbitrary programs from being 32 32 executed setuid. */ 33 - assert ((strncmp(self, wrapperDir, sizeof(wrapperDir)) == 0) && 33 + assert ((strncmp(self, wrapperDir, strlen(wrapperDir)) == 0) && 34 34 (self[strlen(wrapperDir)] == '/')); 35 35 36 36 /* Make *really* *really* sure that we were executed as `self',