From: Jay Freeman (saurik) Date: Wed, 7 Mar 2012 06:57:48 +0000 (-0800) Subject: Only copy the keyboard dictionary if it actually exists. X-Git-Tag: v1.1.5~5 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/57f0b05d173f38e3f57494b84c895cfeaf9f3091 Only copy the keyboard dictionary if it actually exists. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 2212e096..2c94da82 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10633,7 +10633,8 @@ int main(int argc, char *argv[]) { setuid(0); setgid(0); - system("mkdir -p /var/root/Library/Keyboard; cp -af /var/mobile/Library/Keyboard/UserDictionary.sqlite /var/root/Library/Keyboard/"); + if (access("/var/mobile/Library/Keyboard/UserDictionary.sqlite", F_OK) == 0) + system("mkdir -p /var/root/Library/Keyboard; cp -af /var/mobile/Library/Keyboard/UserDictionary.sqlite /var/root/Library/Keyboard/"); /*Method alloc = class_getClassMethod([NSObject class], @selector(alloc)); alloc_ = alloc->method_imp;