Guest User

Untitled

a guest
Jun 18th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. printf("Replace setting.txt with SD card setting.txt?\n");
  2. if (yes_or_no()) {
  3. /*ret = ISFS_GetAttr(filepath, &ownerID, &groupID, &attr, &ownperm, &groupperm, &otherperm);
  4. if (ret < 0){
  5. printf("\tFail! %d\n", ret);
  6. attr = 0;
  7. ownperm = groupperm = otherperm = 1;
  8. exit(1);
  9. }*/
  10. ownerID = 1000;
  11. groupID = 1;
  12. attr = 0;
  13. ownperm = 3;
  14. groupperm = 3;
  15. otherperm = 3;
  16. ret = ISFS_WriteFileFromArray(filepath, setting_txt, 256, ownerID, groupID, attr, ownperm, groupperm, otherperm);
  17. if (ret < 0){
  18. printf("\tFail! %d\n", ret);
  19. wait_anyKey();
  20. exit(1);
  21. }
  22.  
  23. ret = ISFS_GetAttr(filepath, &ownerID, &groupID, &attr, &ownperm, &groupperm, &otherperm);
  24. if (ret < 0){
  25. printf("\tFail! %d\n", ret);
  26. }
  27.  
  28. wait_anyKey();
  29. }
Add Comment
Please, Sign In to add comment