_assert(dup2(fds[1], 1) != -1);
_assert(close(fds[0]) != -1);
_assert(close(fds[1]) != -1);
- execlp("du", "du", "-s", [path UTF8String], NULL);
+ /* XXX: this should probably not use du */
+ execl("/usr/libexec/cydia/du", "du", "-s", [path UTF8String], NULL);
exit(1);
_assert(false);
}
if ([scroller_ respondsToSelector:@selector(setZoomScale:duration:)])
[scroller_ setZoomScale:1 duration:0];
- else
- [scroller_ setZoomScale:1 animated:NO];
+ else if ([scroller_ respondsToSelector:@selector(_setZoomScale:duration:)])
+ [scroller_ _setZoomScale:1 duration:0];
+ /*else if ([scroller_ respondsToSelector:@selector(setZoomScale:animated:)])
+ [scroller_ setZoomScale:1 animated:NO];*/
CGRect webrect = [scroller_ bounds];
webrect.size.height = 0;