mail4visu Posted August 11, 2009 Posted August 11, 2009 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.