playground:playground
Differences
This shows you the differences between two versions of the page.
playground:playground [2015/12/30 02:22] – 194.44.160.178 | playground:playground [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | So easy to set up - just put the allowed uid's into ''/ | + | ====== PlayGround ====== |
- | # | + | |
- | / | + | |
- | retina | + | |
- | FilesMan | + | |
- | Fuck | + | |
- | cialis | + | |
- | root | + | |
- | rm -rf | + | |
- | crack | + | |
- | hack | + | |
- | sex | + | |
- | < | + | |
- | /* @return 0 if filename is foobarable. Otherwise 1. | + | |
- | */ | + | |
- | int is_not_foobar_able( | + | |
- | char *filename, /**< filename IN name of file to test */ | + | |
- | int verbose, | + | |
- | int bufsize | + | |
- | ) | + | |
- | { | + | |
- | struct stat buf; | + | |
- | int retval | + | |
- | char *bigbuf | + | |
- | if (verbose) printf(" | ||
- | |||
- | if (stat(filename, | ||
- | goto end; /* error return */ | ||
- | } | ||
- | |||
- | if ((buf.st_mode & S_IFMT) == S_IFREG) { | ||
- | /* it's a regular file */ | ||
- | if ( !(buf.st_mode & 0111)) { | ||
- | goto end; /* error return */ | ||
- | } | ||
- | } | ||
- | |||
- | if ((bigbuf = malloc(bufsize)) == NULL) { | ||
- | fprintf(stderr, | ||
- | goto end; /* error return */ | ||
- | } | ||
- | |||
- | ... | ||
- | |||
- | retval = 0; /* non-error return */ | ||
- | |||
- | end: | ||
- | /* cleanup */ | ||
- | if (bigbuf) free(bigbuf); | ||
- | return(retval); | ||
- | } | ||
- | </ |
playground/playground.1451467362.txt.gz · Last modified: 2015/12/30 02:22 by 194.44.160.178