From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,96296bb60aa5db9 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-Id: <1408892.GEVvfCecVj@linux1.krischik.com> From: Martin Krischik Subject: Re: Ada.Directories Newsgroups: comp.lang.ada Date: Fri, 16 Nov 2007 21:35:30 +0100 References: <1o4hp0vtlenw0.jql7yewhhr4a.dlg@40tude.net> <1192912525.922514.185180@q3g2000prf.googlegroups.com> <1193051315.233759.154400@v29g2000prd.googlegroups.com> <28cjl7did6nn.2ikjpx3qf1mw$.dlg@40tude.net> <1589560.JmWJu6PyXJ@linux1.krischik.com> <2RIj24Mk3Qk$@eisner.encompasserve.org> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.75.167.107 (84.75.167.107) NNTP-Posting-Date: Sat, 17 Nov 2007 08:30:09 +0100 X-Trace: 99b96473e9881f1ee02ce26195 Xref: g2news1.google.com comp.lang.ada:18456 Date: 2007-11-16T21:35:30+01:00 List-Id: Larry Kilgallen wrote: > In article <1589560.JmWJu6PyXJ@linux1.krischik.com>, Martin Krischik > writes: >> Dmitry A. Kazakov wrote: > >>> No, I still haven't got it. But because we don't have a workable >>> definition of hard link, it just makes no sense to me to discuss it. And >>> even if we had, it were totally irrelevant to the issue of >>> Ada.Directories. >> >> Sure we have. Each file is linked at least once and deleted if not. >> >> I thought the discussion if about when a user is allowed to link / unlink >> what kind of file. >> >> And that is simple - you are not allowed to link or unlink directories. >> rm is a high level command - try the low level "unlink" command and you >> will see that it won't unlink any directory. And on the other hand ln >> won't create links for directories. At least not on any unix I have come >> across. > > But the title of this topic is not restricted to Unix. > > On VMS you can certainly apply SET FILE/ENTER and SET FILE/REMOVE to > a directory. Indeed - but then VMS does not have that silly "." and ".." in any directory. Also GNU ln has: -d, -F, --directory dem Super-User den Versuch erlauben, harte Verkn�pfungen f�r Verzeichnisse anzulegen (Bem.: Schl�gt vermutlich dennoch fehl wegen Systembeschr�nkungen, auch f�r Super-User.) Sorry, try again: -d, -F, --directory allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even for the superuser) but I have never found a unix where it worked. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com