- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- VMS symbolic link
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 01:57 AM
09-20-2010 01:57 AM
VMS symbolic link
I am having situavtion
if(the file is the symbolic linke )
{
do this;
}
else
{
do this;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 03:33 AM
09-20-2010 03:33 AM
Re: VMS symbolic link
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 05:48 AM
09-20-2010 05:48 AM
Re: VMS symbolic link
> FAB?
Why look in the FAB? If you're writing in C,
then why not use the usual C RTL lstat() and
a macro like, say, S_ISLNK? (See
Or, what does readlink() do?
Drag in the FAB if it's convenient, or if you
can't do the job any other way, but it would
not be the first thing that I'd try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 06:26 AM
09-20-2010 06:26 AM
Re: VMS symbolic link
#include
#include
#include
int main( int argc, char **argv)
{
int sts = 0;
struct stat stat_l;
if (argc >= 2)
{
sts = lstat( argv[ 1], &stat_l);
if (sts == 0)
{
printf( " symlink = %d, readlink() = %d.\n",
S_ISLNK(stat_l.st_mode), readlink( argv[ 1], NULL, 0));
}
}
return sts;
}
alp $ cc isl
alp $ link isl
alp $ dire /date /prot /size isl.c;, isl.link;
Directory ALP$DKA0:[SMS.ITRC]
isl.c;5 1 20-SEP-2010 09:19:57.94 (RWED,RWED,RE,)
isl.link;1 -> isl.c
1 20-SEP-2010 09:12:08.81 (RWED,RWED,RE,)
Total of 2 files, 2 blocks.
alp $ mcr sys$disk:[]isl isl.c
symlink = 0, readlink() = -1.
alp $ mcr sys$disk:[]isl isl.link
symlink = 1, readlink() = 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 02:52 PM
09-20-2010 02:52 PM
Re: VMS symbolic link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 04:14 PM
09-20-2010 04:14 PM
Re: VMS symbolic link
http://h71000.www7.hp.com/doc/83final/5763/5763pro_021.html
http://h71000.www7.hp.com/doc/83final/6679/6679pro_008.html
Here's some V8.4 stuff, and look at section 3.6
http://h71000.www7.hp.com/doc/84final/6677/ba322_90089.pdf
Which gets you to commands such as:
$ CREATE /SYMLINK="/SYS$HELP/CC_RELEASE_NOTES.PS" RELNOTES.PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2010 06:15 PM
09-20-2010 06:15 PM
Re: VMS symbolic link
> or just alias and hardlinks?
Are you looking at these postings?
> isl.link;1 -> isl.c
> 1 20-SEP-2010 09:12:08.81 (RWED,RWED,RE,)
What does that look like to you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2010 08:06 PM
09-21-2010 08:06 PM
Re: VMS symbolic link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2010 10:27 PM
09-21-2010 10:27 PM
Re: VMS symbolic link
Thanks for the links.
Steve, I know that my question may have sounded stupid but symbolics links are new to me. I'm not very familiar with this type of links in Unix and was only familiar with alias and hard links on OpenVMS. I was asking for clarification and confirmation.
I'm working on security the Apache server on OpenVMS to DoD standards. One of their issues is the use of symbolic links in the HTDOCS directory. Apparently, symbolic links are a known security issues in Unix. I'm trying to accertain if now that these symbolic links are available in OpenVMS whether the same security issues will present themselves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2010 05:45 AM
09-22-2010 05:45 AM
Re: VMS symbolic link
In all seriousness, I went to Google and entered a couple of search strings to get those links.
To help target the search to OpenVMS and environs, it is often preferable to add /site:h71000.www7.hp.com/ onto the Google query to target the search to a specific web server. This tactic on those parts of the HP web site that don't have Google blocked; some sections do.
>I'm working on security the Apache server on OpenVMS to DoD standards. One of their issues is the use of symbolic links in the HTDOCS directory. Apparently, symbolic links are a known security issues in Unix. I'm trying to accertain if now that these symbolic links are available in OpenVMS whether the same security issues will present themselves.
There are controls over whether the symbolic links can be followed within Apache, and Apache is going to use the C interfaces.
See the FollowSymLinks and related settings
http://httpd.apache.org/docs/2.0/sections.html
The same issue that the security reviewers are likely concerned about with that has been entirely and easily possible with VMS since VAX/VMS V3.0 or so, too. ftp servers can have some similar issues with following links, too.
I would encourage starting your own thread if this area is of interest to you, after having done some initial Google searches. There's no sense conflating this Apache security discussion with a C programming topic, after all.
Which reminds me (for both of the questioners in this thread), go read the C reference manual. The C folks added a gazillion library calls from around 1995 to around 2005 or so; there are numerous "new" APIs there that didn't really make the release notes. This if you haven't read the reference manual from end-to-end in the past decade or so, as I hadn't done when I discovered this. And C99 has some useful features, and a subset of C99 is available on VMS.