Changeset 484 for trunk/src/sh_restrict.c
- Timestamp:
- Sep 1, 2015, 7:45:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_restrict.c
r383 r484 338 338 if (e && (e != s)) 339 339 { 340 /* check that nothing follows */ 341 char * u = e; 342 ++u; for (; *u && isspace((int)*u); ++u) /* nothing */; 343 if (*u != '\0') return NULL; 344 340 345 /* strip trailing space */ 341 346 *e = '\0'; --e; … … 553 558 CuAssertPtrNotNull(tc, sh_restrict_list); 554 559 560 strcpy(str, "size_exceeds(800); match_prefix(/foo), have_permission(0100)"); 561 res = sh_restrict_define(str); 562 CuAssertIntEquals(tc,-1,res); 563 CuAssertPtrNotNull(tc, sh_restrict_list); 564 555 565 res = sh_restrict_this("/home/foo.mpg", 1000, 0755, 0); 556 566 CuAssertIntEquals(tc,1,res);
Note:
See TracChangeset
for help on using the changeset viewer.