Is there a way to create a Symbolic link from a C++ program without using a system call. Program runs with chmod +s as a privileged user on linux. System call will not honor the chmod +s and executes as the user not the privileged user that owns the program. Don't want to grant permissions to everyone.
Creating a Symbolic link from C++ programHow to create Symbolic link from within a C++ program
Page 1 of 1
2 Replies - 9078 Views - Last Post: 15 November 2010 - 03:44 PM
Replies To: Creating a Symbolic link from C++ program
#3
Re: Creating a Symbolic link from C++ program
Posted 15 November 2010 - 03:44 PM
Of course you can create symbolic links. You will need to do so using a platform specific call but the GNU documentation should get you where you need to go.
Google tells me that in #include <unistd.h> there is
int symlink (const char *oldname, const char *newname)
Documentation here
Should not be too hard to figure out.
Google tells me that in #include <unistd.h> there is
int symlink (const char *oldname, const char *newname)
Documentation here
Should not be too hard to figure out.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|