Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mkdir 1

Status
Not open for further replies.

Bangieff

Technical User
Feb 12, 2001
52
BG
Hi there
I'm trying to create a directory with flags drwxrwxrwx .
I think this should create it:

mkdir("./tmp",0777);

but it creates a directory drwxr_xr_x tmp
anyone can tell me where am I wrong?
 
mkdir() ANDs your umask against mode. So make your umask a non-factor in the permission bits you pass to mkdir() by calling umask() beforehand with all bits turned off:

umask(0);


Russ
bobbitts@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top