Jump to content
Forum²

Recommended Posts

Posted

Hi All,

I am writing a backup application and when I try to read system junction folder "C:\Document and settings", I get an error "Access denied". This is expected behavior of the system but I need to read the directory/folder to get the meta data of the file as part of backup application.

 

To get the meta data of the folder, I need to read the folder but MSDN (Junction Points (Windows)) specify junction point access control lists (ACLs) set to deny read access to everyone and also added ---

"Applications that call out a specific path can traverse these junction points if they have the required permissions. However, attempts to enumerate the contents of the junction points will result in failures. It is important that backup applications do not traverse these junction points, or attempt to backup data under them, ....."

 

MSDN clearly specify "if application has required permission they can read the system junction folder" but it was not clear on required permissions.

 

I tried reading system junction folder using flags FILE_ATTRIBUTE_REPARSE_POINT, FILE_FLAG_OPEN_REPARSE_POINT and FILE_FLAG_BACKUP_SEMANTICS but they were of no use :confused:;

 

Please let me know who to read system junction point folder. Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...