Re: Permissions when saving file
Re: Permissions when saving file
- Subject: Re: Permissions when saving file
- From: Pete Yandell <email@hidden>
- Date: Thu, 15 Apr 2004 07:45:36 +1000
Why not just use the chown function? See man 2 chown for details.
Using system forks off a whole other process just to do one tiny thing,
which is very wasteful.
I have sad memories of working with a guy who, despite including
libcurses in his project, insisted on clearing the screen with system
("clear"). *sigh*
On 15/04/2004, at 7:12 AM, Matt Jaffa wrote:
I just used int reerere = system(char * cmd)
using chown as the command and it works great, thanks.
On Apr 14, 2004, at 11:57 AM, M. Uli Kusterer wrote:
At 11:03 Uhr -0600 14.04.2004, Matt Jaffa wrote:
Does having the atomically:NO or :YES affect this problem at all?
It could. YES means that a second file will be created, written to,
and then the two files' contents will be swapped. NO modifies the
file directly. So if you just switched from NO to YES, that may be
where your problem is coming from.
However, since your daemon is running as root, have you tried just
chowning the file to be owned by that particular user?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.