![]() |
Re: Wierd Crash
I changed target to /home/user/.app set write access and app still crash.
|
Re: Wierd Crash
Quote:
1) make sure that the directory exists. have your program create it if not. 2) show me Code:
ls -l -R /home/user/.app Code:
ls -l -d /home/user/.app Code:
#include <stdio.h> |
Re: Wierd Crash
Outputs are same... When I am logged as root and use chown a get this error unkown user/group user:user
My code: Code:
void save() { |
Re: Wierd Crash
1) Put the error checking code I showed you after the fopen. That way, if it fails you will know why.
2) You need to run the chown command as root |
Re: Wierd Crash
1)I know why it cant open file for write.
2) sudo gainroot chown -R user.user /home/user/.app unkown user/group user:user Thank you for your help. |
Re: Wierd Crash
OK, my mistake: it's
Code:
chown -R user.users /home/user/.app |
Re: Wierd Crash
Thank you very much. Now it works. I have a last question. How run this command after install app?
|
Re: Wierd Crash
Quote:
e.g.: Code:
mkdir("/home/user/.app", 0777); |
Re: Wierd Crash
Thanks but before first run this program is this dir created. Dir creates in installation of app.
|
Re: Wierd Crash
Quote:
|
All times are GMT. The time now is 15:57. |
vBulletin® Version 3.8.8