![]() |
| ||
| Dir creating, permissions setting issue! Hello, I need to create some dirs (one for each user), taking the dir name from a given string. I managed to do this with the following code: DIR *dir_ptr; My problem is these dirs are created with no permissions at all, I've got to set them manually doing "chmod 777 name", is there a function out there to create dirs with permissions already setted? I need to use them later from inside my application and I want the users to be able to modify them from the OS (ie adding files inside). I use Debian, in XP no problems! |
| ||
| Re: Dir creating, permissions setting issue! Apparently, mkdir() takes 2 parameters. http://www.rocketaware.com/man/man2/mkdir.2.htm One wonders whether - you read the manual before calling it - included the appropriate header file which would have warned you about too few parameters - mis-took early success on other platforms as a sign of bug-free code. |
| All times are GMT -4. The time now is 9:41 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC